Where did the warning go?

Ian Lance Taylor iant@google.com
Wed Feb 25 21:48:00 GMT 2009


"John (Eljay) Love-Jensen" <eljay@adobe.com> writes:

> As long as I'm making wishes, I also wish warnings were emitted like this:
> test.cpp:6: -Wunused warning: unused variable 'u'
> ...rather than...
> test.cpp:6: warning: unused variable 'u'

As of gcc 4.2, you can get something like this if you use
-fdiagnostics-show-option.

Ian



More information about the Gcc-help mailing list