• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: format string warnings for printf vs NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >format string warnings for printf vs NSString (From: Sean McBride <email@hidden>)
 >Re: format string warnings for printf vs NSString (From: Jean-Daniel Dupas <email@hidden>)
 >Re: format string warnings for printf vs NSString (From: Jens Alfke <email@hidden>)
 >Re: format string warnings for printf vs NSString (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Framework copy
  • Next by Date: Re: Can't symbolicate crash reports
  • Previous by thread: Re: format string warnings for printf vs NSString
  • Next by thread: pass info to subproject
  • Index(es):
    • Date
    • Thread