Re: Local disable of specific warnings for a section of code

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

 



Lee Rhodes wrote:
> Re: GCC 3.4.4 Lang: C,C++
>
> In general I like have all warnings active, however, I have certain sections
> of code where I know a warning will be generated, but I don't want these
> warnings to clutter my build output.  Is there a solution for this?
>   

This is just my 2 cents (pesos, yen whatever), but most GCC warnings are
sensible.  Maybe it's best to clean up the code in question instead of
trying to ignore the warnings?

Failing that, why not just factor your code so the dodgy bits are in
their own C file which you can then change the CFLAGS for. 

Tom

[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