Commit 2f1fe72f authored by David Fuhrmann's avatar David Fuhrmann

macosx: suppress format warnings in StringUtility

According to http://developer.apple.com/library/mac/#documentation/cocoa/conceptual/Strings/Articles/formatSpecifiers.html
%C is the right one for unicode characters.
parent 4d4ba91c
......@@ -279,6 +279,8 @@ unsigned int CocoaKeyToVLC(unichar i_key)
theString = [theString stringByReplacingOccurrencesOfString:@"Shift" withString:@""];
theString = [theString stringByReplacingOccurrencesOfString:@"Ctrl" withString:@""];
}
#pragma GCC diagnostic ignored "-Wformat"
if ([theString length] > 1) {
if ([theString rangeOfString:@"Up"].location != NSNotFound)
return [NSString stringWithFormat:@"%C", NSUpArrowFunctionKey];
......@@ -334,6 +336,7 @@ unsigned int CocoaKeyToVLC(unichar i_key)
return [NSString stringWithFormat:@"%C", NSF1FunctionKey];
/* note that we don't support esc here, since it is reserved for leaving fullscreen */
}
#pragma GCC diagnostic warning "-Wformat"
return theString;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment