Re: Working with weekdays on NSDate, NSDateComponents, NSCalendar and NSValueTransformer
Re: Working with weekdays on NSDate, NSDateComponents, NSCalendar and NSValueTransformer
- Subject: Re: Working with weekdays on NSDate, NSDateComponents, NSCalendar and NSValueTransformer
- From: Roland King <email@hidden>
- Date: Tue, 17 Mar 2009 23:44:25 +0800
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 (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
_______________________________________________
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