• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to enforce C89-style variable declarations in gcc ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How to enforce C89-style variable declarations in gcc ? (From: Paul Russell <email@hidden>)
 >Re: How to enforce C89-style variable declarations in gcc ? (From: Peter O'Gorman <email@hidden>)
 >Re: How to enforce C89-style variable declarations in gcc ? (From: Paul Russell <email@hidden>)
 >Re: How to enforce C89-style variable declarations in gcc ? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: downloading iPhone OS 4.0 Library documentation
  • Next by Date: Odd Console time-out message since 3.2.3
  • Previous by thread: Re: How to enforce C89-style variable declarations in gcc ?
  • Next by thread: Single Project with Mac and iPhone targets
  • Index(es):
    • Date
    • Thread