• 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: Casting anonymous Objects leads to different values on getter functions (while getting no warnings at compile time)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Casting anonymous Objects leads to different values on getter functions (while getting no warnings at compile time)


  • Subject: Re: Casting anonymous Objects leads to different values on getter functions (while getting no warnings at compile time)
  • From: Hauke Klein <email@hidden>
  • Date: Wed, 9 Nov 2005 10:57:55 +0100


On 08.11.2005, at 11:06, Martin Wilz wrote:


Concerning the warning issue, I was not able to locate a switch in the preferences to enable these in XCode 2.1. I also opened the project on an freshly installed version, so the switch (if it exists) is off by default or already encoded into the project that was also created without touching the project preferences.


I compiled your file directly from the command line using gcc 3.3 and got a warning. As already said by Pontus, gcc 4 does not seems to emit these warnings unless -Wselector is used. You can add this option to the 'Other warning flags' build setting for your target (this is the name used in XCode 1.5, don't know about 2.1).

Hauke Klein

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Casting anonymous Objects leads to different values on getter functions (while getting no warnings at compile time) (From: Martin Wilz <email@hidden>)
 >Re: Casting anonymous Objects leads to different values on getter functions (while getting no warnings at compile time) (From: Hauke Klein <email@hidden>)
 >Re: Casting anonymous Objects leads to different values on getter functions (while getting no warnings at compile time) (From: Martin Wilz <email@hidden>)

  • Prev by Date: Re: Cocoa optimization
  • Next by Date: (no subject)
  • Previous by thread: Re: Casting anonymous Objects leads to different values on getter functions (while getting no warnings at compile time)
  • Next by thread: Linking in Categories from static libraries.
  • Index(es):
    • Date
    • Thread