public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* How to turn off a warning in a file
@ 2006-06-13 11:23 robbie.doggie
  2006-06-13 11:33 ` Gabriel Dos Reis
  2006-06-13 22:06 ` Christoph Bartoschek
  0 siblings, 2 replies; 6+ messages in thread
From: robbie.doggie @ 2006-06-13 11:23 UTC (permalink / raw)
  To: gcc-help

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?

Kind regards,
Hans-Heiri


-- 


"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Fwd: Re: Re: How to turn off a warning in a file
@ 2006-06-13 13:01 robbie.doggie
  2006-06-13 15:38 ` Perry Smith
  0 siblings, 1 reply; 6+ messages in thread
From: robbie.doggie @ 2006-06-13 13:01 UTC (permalink / raw)
  To: gcc-help

> very annoying warning, isn't it?

Oh yes, it is...

> | Is it possible to turn off this warning for these files?
> 
> Append -Wno-virtual-dtor.

Ok, but actually I'd like to keep it turned on for other files. In other compilers there's a possibility with #pragma. But I haven't found out whether that's possible with gcc, too.

-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-06-16 18:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-13 11:23 How to turn off a warning in a file robbie.doggie
2006-06-13 11:33 ` Gabriel Dos Reis
2006-06-16 17:19   ` Paulo J. Matos
2006-06-16 18:46     ` Gabriel Dos Reis
2006-06-13 22:06 ` Christoph Bartoschek
2006-06-13 13:01 Fwd: Re: " robbie.doggie
2006-06-13 15:38 ` Perry Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).