Re: How to turn off a warning in a file

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

 



Am Dienstag, 13. Juni 2006 13:23 schrieb robbie.doggie@xxxxxxx:
> Hi,
>
> I'm compiling with compiler option -Wall, which is fine for all my files.
> But I'm also including third party headers which return billions of "
> `class xy' has virtual functions but non-virtual destructor" warnings. Is
> it possible to turn off this warning for these files?

If your third party headers are in a separate directory you can use -isystem 
<dir> instead of -I<dir>. This disables most of the warnings for headers 
from <dir>.

Christoph

[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