Re: Tailoring warnings

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

 



Hello Yang,

On Fri, Feb 20, 2009 at 02:59:11AM -0500, Yang Zhang wrote:
> Can gcc restrict certain warnings to exclude certain files or to apply  
> only to certain files?  E.g., I'd like to have -Wold-style-cast,  
> -Wconversion, and some others to apply only to my own code, and not  
> (say) boost headers.  (I do use -Werror.)

I don't think it's possible since the headers are included first by the
pre-processor, and then the compiler generates warnings / errors.

With kind regards,
-- 
Baurzhan Ismagulov
http://www.kz-easy.com/

[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