Keith Prickett wrote:
When attempting to find errors and warnings using vim's make or
"quickfix" I am bogged down by a warning that I don't want to see.  The
warning I don't want to see is in this format:

../../buildrules.mk:77: file.d: No such file or directory

A warning or error I DO WANT to see might look like this:


filename.c:566: warning: implicit declaration of function
`function_name'

or other warnings or errors.


I am attempting to create a regular expression/matching pattern that
will capture errors and warnings in the above format (an error won't
have the "warning:" text, just a message after the filename and line
number).

My current efm includes "%f:%l:\ %m" as the matching pattern which
matches all wanted errors and warnings but also captures the ".d: no
such file" warning above.

--
Does anyone know a good regular expression for quickfix that will help
me sift through the weeds?




Using: GVIM7.0 and Windows.


Thank you,
--
Keith A. Prickett
Marvell Semiconductor, Inc.



You may want to modify line 77 of buildrules.mk so that it doesn't generate the "no such file" error, maybe by prepending it with a dash, and perhaps also redirecting its output to >/dev/null (on Unix or Cygwin) or >NUL (on Windows). Or else by first checking for existence of the file or directory in question.


Best regards,
Tony.

Reply via email to