How to turn off a warning in a file

Christoph Bartoschek bartoschek@gmx.de
Tue Jun 13 22:06:00 GMT 2006


Am Dienstag, 13. Juni 2006 13:23 schrieb robbie.doggie@gmx.net:
> 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



More information about the Gcc-help mailing list