Re: any way to disable a single *instance* of a GCC warning?

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

 



Hi Brian,

thanks for your help. But I think these do not do what I actually
need. As I understand them, they modify the compile option, but for
the whole source file. I instead would like to modify the option for a
single line (or maybe a couple of lines...) inside the same source
file...

Does that make sense?

Rainer

On Mon, Jun 23, 2008 at 10:50 AM, Brian Dessent <brian@xxxxxxxxxxx> wrote:
> 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 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