This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: [Fwd: GCC Specific warning to error]
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Amit Chordia <achordia at ptc dot com>, gcc-help at gcc dot gnu dot org
- Date: Fri, 27 Aug 2004 10:16:30 -0500
- Subject: Re: [Fwd: GCC Specific warning to error]
- References: <412D8D57.7020204@ptc.com>
Hi Amit,
>Is there any way where I can tell the compiler to make a particular
warning to represent as error like we do it in 'cl' with the use of 'pragma' ?
You can turn off all warnings, then turn on the warnings you are interested
in, and then turn all warnings-into-errors. All on the command line
invocation of gcc (or g++) as the compiler/linker.
That's about as close as you can get, though.
HTH,
--Eljay