• 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 not a string literal and no format arguments"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: "Format not a string literal and no format arguments"
      • From: Ken Thomases <email@hidden>
References: 
 >"Format not a string literal and no format arguments" (From: Jonathan del Strother <email@hidden>)
 >Re: "Format not a string literal and no format arguments" (From: Quincey Morris <email@hidden>)
 >Re: "Format not a string literal and no format arguments" (From: Peter Duniho <email@hidden>)
 >Re: "Format not a string literal and no format arguments" (From: Quincey Morris <email@hidden>)
 >Re: "Format not a string literal and no format arguments" (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Get error message about registered observers when Object receives dealloc message
  • Next by Date: Re: learning the NSView structure of an app?
  • Previous by thread: Re: "Format not a string literal and no format arguments"
  • Next by thread: Re: "Format not a string literal and no format arguments"
  • Index(es):
    • Date
    • Thread