Re: Fwd: Re: Re: How to turn off a warning in a file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



robbie.doggie@xxxxxxx 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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux