Re: #num line directives suppress warnings in C code?

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

 



On Tue, May 14, 2013 at 8:52 PM, Dara Hazeghi <dhazeghi@xxxxxxxxx> wrote:
> I've been dealing with a fair amount preprocessed C code, which includes directives that look like:
> #0 "/usr/local/gcctrunk/lib/gcc/x86_64unknownlinuxgnu/4.9.0/include/stddef.h" 3
>
>
> The problem I've encountered is that when I compile files with such code in them using gcc, the usual warnings from the compiler are suppressed.  I'm guessing that this is intended behavior?  If so, is there a way to disable it (re-enabling the warnings)?

The -Wsystem-headers option.

Ian





[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