Re: [Fwd: GCC Specific warning to error]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux