------- Comment #2 from eric_moyer at yahoo dot com 2010-08-06 02:09 ------- If you are talking about "#pragma GCC diagnostic" that looks good. Turning off error classes is sufficiently fine grained. However the pragma is only guaranteed to work on a file-wide scope. The 4.5 manual says,
"Also, while it is syntactically valid to put these pragmas anywhere in your sources, the only supported location for them is before any data or functions are defined. Doing otherwise may result in unpredictable results depending on how the optimizer manages your sources." I want to disable warnings for particular lines of code rather than whole files. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45203