• 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: Warning about comparison between pointer and integer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warning about comparison between pointer and integer


  • Subject: Re: Warning about comparison between pointer and integer
  • From: "email@hidden" <email@hidden>
  • Date: Wed, 16 Dec 2009 16:52:26 +0000

>
> Should I use a temporary variable to check instead of the variable with the
> pointer? Or are these warnings okay to ignore?

With regard to warnings I would recommend the following:

http://boredzo.org/blog/archives/2009-11-07/warnings
http://developer.apple.com/tools/xcode/compilercodewarnings.html

It takes a bit of time to comprehend all the subtleties involved but the payback is worth it.
Personally, I turn them on early and leave them on (this was learnt the hard way).

The static analyser is also supremely useful.

Regards

Jonathan Mitchell

Developer
http://www.mugginsoft.com


_______________________________________________

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

References: 
 >Warning about comparison between pointer and integer (From: "Eric E. Dolecki" <email@hidden>)

  • Prev by Date: Re: Warning about comparison between pointer and integer
  • Next by Date: Question in regards to .ics files
  • Previous by thread: Re: Warning about comparison between pointer and integer
  • Next by thread: Cannot use malloc debug
  • Index(es):
    • Date
    • Thread