I assumed that -Wall meant .. all. What does Wextra, Winit-self,
Wundeclared-selector add? And why aren't they part of all?
On Mar 17, 2009, at 11:16 PM, Joar Wingfors wrote:
On 17 mar 2009, at 06.32, Michele Barboni wrote:
if(value = nil) return nil;
missed a "=".. sorry..
...and that's why it's great to re-train yourself to type it the
other way around:
if (nil == value)
A stricter set of compiler warnings helps too, of course:
-Wall -Wextra -Winit-self -Wundeclared-selector
(At least when compiling your "Release" configuration)
Cheers,
j o a r
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org
This email sent to r...@rols.org
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com