%s is deliberate in this format string

Fixes #1053
This commit is contained in:
Kornel Lesiński committed 2017-03-24 12:00:12 +00:00
1 parent 405c9fd9a1
commit 4bc2e6e891
1 file changed
+3
+3
View File
@@ -174,7 +174,10 @@ static BOOL SUMakeRefFromURL(NSURL *url, FSRef *ref, NSError **error) {
if (runStatus != errAuthorizationSuccess) {
#pragma clang diagnostic pop
if (error != NULL) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wcstring-format-directive"
*error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUAuthenticationFailure userInfo:@{ NSLocalizedDescriptionKey:[NSString stringWithFormat:@"Failed to run authorization tool %s (%d).", toolPath, (int)runStatus] }];
#pragma clang diagnostic pop
}
return NO;
}