This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How to turn off a warning in a file
- From: Christoph Bartoschek <bartoschek at gmx dot de>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 14 Jun 2006 00:06:32 +0200
- Subject: Re: How to turn off a warning in a file
- References: <20060613112311.44560@gmx.net>
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