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: any way to disable a single *instance* of a GCC warning?


Rainer Gerhards wrote:

> I wonder if there is any way to disable a warning for the next line. I
> have seen that some compilers do this via a #pragma, but I have not
> found any such pragma in GCC.

gcc has supported this from 4.2 on:
<http://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html>

Brian


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