This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to turn off a warning in a file


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.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]