[Fwd: GCC Specific warning to error]

Eljay Love-Jensen eljay@adobe.com
Fri Aug 27 21:24:00 GMT 2004


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



More information about the Gcc-help mailing list