Re: Warning about comparison between pointer and integer
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