Let the compiler know that SULog is a format function.

This allows it to warn properly on malformed format strings.
This commit is contained in:
Jake Petroules committed 2014-06-28 21:11:43 -04:00
1 parent e2854d3a29
commit 135bcb483e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -80,7 +80,7 @@
if (taskResult != 0)
{
NSString* resultStr = output ? [[[NSString alloc] initWithData: output encoding: NSUTF8StringEncoding] autorelease] : nil;
SULog( @"hdiutil failed with code: %d data: <<%@>>", taskResult, resultStr );
SULog( @"hdiutil failed with code: %ld data: <<%@>>", (long)taskResult, resultStr );
goto reportError;
}
mountedSuccessfully = YES;
+1 -1
View File
@@ -26,6 +26,6 @@
// -----------------------------------------------------------------------------
void SUClearLog( void );
void SULog( NSString* format, ... );
void SULog( NSString* format, ... ) NS_FORMAT_FUNCTION(1,2);