Re: How to enforce C89-style variable declarations in gcc ?
Re: How to enforce C89-style variable declarations in gcc ?
- Subject: Re: How to enforce C89-style variable declarations in gcc ?
- From: Paul Russell <email@hidden>
- Date: Wed, 23 Jun 2010 22:30:45 +0100
On 23 Jun 2010, at 17:18, Jens Alfke wrote:
>
> On Jun 23, 2010, at 7:06 AM, Paul Russell wrote:
>
>> Thanks - that at least generates a warning. It appears that from gcc 4.4 onwards I can use -Werror=declaration-after-statement to get an error rather than a warning, but this is broken in gcc 4.2 and unsupported in gcc 4.0.
>
> Use plain -Werror and fix the spurious warnings in your code? That’s always a good idea anyway.
>
In a perfect world, yes, but this is a large cross-platform code base with a lot of developers, and despite my best efforts we always seem to have a background noise level of warnings etc in every build. Ideally I'd like to specify a list of warnings should be considered errors, so that we could fail for the more serious warnings, but still build OK when it's just the more trivial warnings.
Paul
_______________________________________________
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