Fwd: Re: Re: How to turn off a warning in a file
Ian Lance Taylor
iant@google.com
Tue Jun 13 15:26:00 GMT 2006
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
More information about the Gcc-help
mailing list