This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Fwd: GCC Specific warning to error]


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]