Re: Suppressing particular warnings for particular lines of code

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

 



Hi Yang,

>> In Java, you can insert @SuppressWarnings(...) annotations before a line
>> to tell javac to suppress certain warnings for that line.  Is there
>> anything similar for gcc?

> Anyone?

For gcc, there are the compile line switches, such as -Wall, -Wextra, and
other -Wsomething which enable (or using -Wno-something, disable) the
warning.

There are no #pragma directives to disable warnings in-line with the code.

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