public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Fwd: Re: Re: How to turn off a warning in a file
@ 2006-06-13 13:01 robbie.doggie
  2006-06-13 15:26 ` Ian Lance Taylor
  2006-06-13 15:38 ` Perry Smith
  0 siblings, 2 replies; 3+ 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] 3+ messages in thread

* Re: Fwd: Re: Re: How to turn off a warning in a file
  2006-06-13 13:01 Fwd: Re: Re: How to turn off a warning in a file robbie.doggie
@ 2006-06-13 15:26 ` Ian Lance Taylor
  2006-06-13 15:38 ` Perry Smith
  1 sibling, 0 replies; 3+ messages in thread
From: Ian Lance Taylor @ 2006-06-13 15:26 UTC (permalink / raw)
  To: robbie.doggie; +Cc: gcc-help

robbie.doggie@gmx.net writes:

> > | 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.

gcc does not support any sort of #pragma or _Pragma or attribute to
disable specific warnings.  However, there is some ongoing work to
implement this in a future (post 4.2) release.

Ian

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

* Re: How to turn off a warning in a file
  2006-06-13 13:01 Fwd: Re: Re: How to turn off a warning in a file robbie.doggie
  2006-06-13 15:26 ` Ian Lance Taylor
@ 2006-06-13 15:38 ` Perry Smith
  1 sibling, 0 replies; 3+ messages in thread
From: Perry Smith @ 2006-06-13 15:38 UTC (permalink / raw)
  To: robbie.doggie; +Cc: gcc-help

On Jun 13, 2006, at 8:01 AM, robbie.doggie@gmx.net wrote:
>>
>> 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.

As an alternative, GNU make has target specific variables so you can  
have that flag set for particular object files and not for others.   
They are pretty easy to use.

HTH,
pedz

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

end of thread, other threads:[~2006-06-13 15:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-13 13:01 Fwd: Re: Re: How to turn off a warning in a file robbie.doggie
2006-06-13 15:26 ` Ian Lance Taylor
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).