Re: Per-file Warnings suppression?
Re: Per-file Warnings suppression?
- Subject: Re: Per-file Warnings suppression?
- From: Peter O'Gorman <email@hidden>
- Date: Wed, 01 Oct 2008 12:38:11 -0500
Brian Stern wrote:
>
> On Oct 1, 2008, at 1:00 PM, Chris Espinosa wrote:
>>
>> Try adding -Wno-shadow to the per-file Build settings.
>>
>
> What would make all of this much simpler would be if gcc had a way of
> turning on/off warnings and other compiler settings in the source code.
> I don't think it has any way to do that. Is this a feature that's ever
> been suggested for gcc? Is there any likelihood of it ever being
> implemented?
>
> I guess most users of gcc are doing makefile development. Not sure if
> there's a convenient way to specify a per-file compiler setting in a
> makefile or if this affects the likelihood of this feature ever being
> implemented.
>
#pragma GCC diagnostic
I think this is gcc-4.2 and later, see
http://gcc.gnu.org/onlinedocs/gcc-4.2.4/gcc/Diagnostic-Pragmas.html#Diagnostic-Pragmas
Peter
--
Peter O'Gorman
http://pogma.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden