Re: Creating methods with variable length arguments terminated by nil
Re: Creating methods with variable length arguments terminated by nil
- Subject: Re: Creating methods with variable length arguments terminated by nil
- From: Dave Keck <email@hidden>
- Date: Wed, 15 Jul 2009 21:14:22 -1000
The other night I spent about three hours trying to figure out why
some code I had was behaving so strangely. It got to the point where I
was convinced I found a bug in gcc - but as always, it was the pilot
at fault. It turns out I forgot to terminate several of my
variable-argument lists with a nil.
At one time, I recall Xcode/gcc warning me about not terminating my
varg list with a nil, but recently I found this warning is not enabled
by default (perhaps my system's just acting up?). So yeah, I learned
pretty quick how useful -Wformat can be; I highly recommend enabling
it!
David
_______________________________________________
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