Re: "Format not a string literal and no format arguments"
Re: "Format not a string literal and no format arguments"
- Subject: Re: "Format not a string literal and no format arguments"
- From: Quincey Morris <email@hidden>
- Date: Sat, 29 Aug 2009 13:24:55 -0700
On Aug 29, 2009, at 12:31, Ken Thomases wrote:
No such thing is assumed. If you provide a string literal, the
compiler actual checks it and the arguments to make sure they're
consistent with each other.
I expressed myself badly. Because that check produces a different
warning, I was thinking of it as a different check.
It's actually not clear (to me) whether the two warnings are
controlled by the same compiler options. AFAIK -Wno-format (which used
to be the default in the build setting) would turn off the type
mismatch warning, but I don't know whether it would turn off the new
warning too (which seems to depend on an __attribute decoration).
_______________________________________________
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