This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Where did the warning go?
- From: Ian Lance Taylor <iant at google dot com>
- To: "John \(Eljay\) Love-Jensen" <eljay at adobe dot com>
- Cc: GCC-help <gcc-help at gcc dot gnu dot org>
- Date: Wed, 25 Feb 2009 13:47:46 -0800
- Subject: Re: Where did the warning go?
- References: <C5CA94D0.38787%eljay@adobe.com>
"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