[vlc-commits] macosx: Fix warnings for localizable format strings

Marvin Scholz git at videolan.org
Mon Apr 18 16:31:28 CEST 2016


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Tue Apr 12 12:36:37 2016 +0200| [8b1522a9c4c88552b2e43baa00100e4da3ad3d63] | committer: Marvin Scholz

macosx: Fix warnings for localizable format strings

The NS_FORMAT_ARGUMENT macro is added to the localizedString function
to prevent warnings (format string is not a string literal) when
localizing format strings.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8b1522a9c4c88552b2e43baa00100e4da3ad3d63
---

 modules/gui/macosx/StringUtility.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/StringUtility.h b/modules/gui/macosx/StringUtility.h
index 14eb90c..47edb94 100644
--- a/modules/gui/macosx/StringUtility.h
+++ b/modules/gui/macosx/StringUtility.h
@@ -58,7 +58,7 @@ NSImage *imageFromRes(NSString *o_id);
 
 + (VLCStringUtility *)sharedInstance;
 
-- (NSString *)localizedString:(const char *)psz;
+- (NSString *)localizedString:(const char *)psz NS_FORMAT_ARGUMENT(1);
 - (NSString *)wrapString: (NSString *)o_in_string toWidth: (int)i_width;
 - (NSString *)getCurrentTimeAsString:(input_thread_t *)p_input negative:(BOOL)b_negative;
 - (NSString *)stringForTime:(long long int)time;



More information about the vlc-commits mailing list