• 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: warning at nslog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: warning at nslog


  • Subject: Re: warning at nslog
  • From: Todd Heberlein <email@hidden>
  • Date: Sun, 27 Sep 2009 14:50:00 -0700

NSString *absolutePath = [path stringByExpandingTildeInPath];

and i print it with this

NSLog(absolutePath);

it gives me warning:

Format not a string literal and no format arguments. 

You will get a similar warning when using the Apple System Log facility. For example, the line:

err = asl_log(asl, aslMsg, ASL_LEVEL_ERR, errStr);

will create the same warning because the errStr argument is a char* variable and not a string literal. Unfortunately, that line of code above comes from Apple's exemplar code BetterAuthorizationSampleLib.c.

:(

Todd

 _______________________________________________
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

  • Follow-Ups:
    • Re: warning at nslog
      • From: Chris Suter <email@hidden>
References: 
 >warning at nslog (From: Jos Timanta Tarigan <email@hidden>)

  • Prev by Date: Re: warning at nslog
  • Next by Date: Re: warning at nslog
  • Previous by thread: Re: warning at nslog
  • Next by thread: Re: warning at nslog
  • Index(es):
    • Date
    • Thread