How to turn off a warning in a file

Paulo J. Matos pocmatos@gmail.com
Fri Jun 16 17:19:00 GMT 2006


On 13 Jun 2006 06:33:50 -0500, Gabriel Dos Reis <gdr@cs.tamu.edu> wrote:
> robbie.doggie@gmx.net writes:
>
> | 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.
>
> very annoying warning, isn't it?
>
> | Is it possible to turn off this warning for these files?
>
> Append -Wno-virtual-dtor.
>

Not available in g++ 4.1.1:
cc1plus: error: unrecognized command line option "-Wno-virtual-dtor"

> -- Gaby
>


-- 
Paulo Jorge Matos - pocm at sat inesc-id pt
Web: http://sat.inesc-id.pt/~pocm
Computer and Software Engineering
INESC-ID - SAT Group



More information about the Gcc-help mailing list