]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/StringUtility.m
macosx/CAS: simplify stream-out summary to something useful
[vlc] / modules / gui / macosx / StringUtility.m
index d9ce0272f13be16c0f3f52941c1bfd7eaf867386..00ae8f2cf394b2bd8d81c296441f50e73635f742 100644 (file)
@@ -279,6 +279,10 @@ unsigned int CocoaKeyToVLC(unichar i_key)
         theString = [theString stringByReplacingOccurrencesOfString:@"Shift" withString:@""];
         theString = [theString stringByReplacingOccurrencesOfString:@"Ctrl" withString:@""];
     }
+
+#ifdef __clang__
+#pragma GCC diagnostic ignored "-Wformat"
+#endif
     if ([theString length] > 1) {
         if ([theString rangeOfString:@"Up"].location != NSNotFound)
             return [NSString stringWithFormat:@"%C", NSUpArrowFunctionKey];
@@ -334,6 +338,9 @@ 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 */
     }
+#ifdef __clang__
+#pragma GCC diagnostic warning "-Wformat"
+#endif
 
     return theString;
 }