Re: warning at nslog
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