• 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: [commentary] The value of warnings [was: Re: A Data Object in Cocoa]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [commentary] The value of warnings [was: Re: A Data Object in Cocoa]


  • Subject: Re: [commentary] The value of warnings [was: Re: A Data Object in Cocoa]
  • From: "Michael Ash" <email@hidden>
  • Date: Sat, 10 Jan 2009 11:46:55 -0500

On Sat, Jan 10, 2009 at 12:56 AM, Andrew Farmer <email@hidden> wrote:
> Not to mention, there is no guarantee that future versions of the compiler
> will behave identically when processing code that generates warnings. It is
> not uncommon for warnings to later turn into errors, or (worse!) incorrect
> behavior, especially when optimizations are involved.

Just to pick a nit, this depends greatly on what the warning is about.
A lot of warnings are actually about code whose behavior is fully
specified by the standard but which is still considered to be iffy.
For example, writing if(a = b) will generate a warning under -Wall but
its behavior is fully specified and cannot change in any conforming
compiler.

However it's still a good idea to fix them, and many warnings *are*
about code whose behavior could change.

Mike
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: [commentary] The value of warnings [was: Re: A Data Object in Cocoa]
      • From: "Sean McBride" <email@hidden>
References: 
 >[commentary] The value of warnings [was: Re: A Data Object in Cocoa] (From: Stuart Malin <email@hidden>)
 >Re: [commentary] The value of warnings [was: Re: A Data Object in Cocoa] (From: "I. Savant" <email@hidden>)
 >Re: [commentary] The value of warnings [was: Re: A Data Object in Cocoa] (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: accessing ivars in - (id)init
  • Next by Date: Re: A Data Object in Cocoa
  • Previous by thread: Re: [commentary] The value of warnings [was: Re: A Data Object in Cocoa]
  • Next by thread: Re: [commentary] The value of warnings [was: Re: A Data Object in Cocoa]
  • Index(es):
    • Date
    • Thread