Re: format string warnings for printf vs NSString
Re: format string warnings for printf vs NSString
- Subject: Re: format string warnings for printf vs NSString
- From: Sean McBride <email@hidden>
- Date: Mon, 16 Jan 2012 11:59:00 -0500
- Organization: Rogue Research Inc.
On Sat, 14 Jan 2012 23:24:30 +0100, Jean-Daniel Dupas said:
>For some reason, clang has a special treatment for NSLog and NSLogv,
>that's why it works with these functions but not for your custom functions.
>
>I'm working on a patch that will solve both issues:
>- format string is not checked on obj-c methods.
>- NSString and CFString formats are not checked at all.
Jean-Daniel,
Awesome. In addition to the bug I linked to earlier, there is another very much related, here are both:
<http://llvm.org/bugs/show_bug.cgi?id=10274>
<http://llvm.org/bugs/show_bug.cgi?id=10275>
Then there's the matter of several methods in NSPredicate, NSAlert, NSCoder, etc. missing the decoration, but at least one can hack their headers easily enough.
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden