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

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

 



Hi Lee,

> 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?

Yes.

You can use a post-process on the build output to selectively strip out
warnings that you have determined are ignorable noise.

Perl is one good tool to do that post-processing filter.  Other good tools
to consider are sed, grep, awk, Python, Ruby.  (This list is by no means
exhaustive!)

HTH,
--Eljay


[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