[vlc-devel] commit: text/unicode.c: More unused warning fix. (Pierre d'Herbemont )

git version control git at videolan.org
Mon Mar 3 02:45:38 CET 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Mon Mar  3 02:45:45 2008 +0100| [c9549a21fc696b6ea7f26361eb7523e700374f8b]

text/unicode.c: More unused warning fix.

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

 src/text/unicode.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/text/unicode.c b/src/text/unicode.c
index e826801..e01c1d7 100644
--- a/src/text/unicode.c
+++ b/src/text/unicode.c
@@ -157,6 +157,7 @@ static char *locale_fast (const char *string, vlc_bool_t from)
     WideCharToMultiByte (from ? CP_UTF8 : CP_ACP, 0, wide, -1, out, len, NULL, NULL);
     return out;
 #else
+    VLC_UNUSED(from);
     return (char *)string;
 #endif
 }
@@ -171,6 +172,7 @@ static inline char *locale_dup (const char *string, vlc_bool_t from)
 #elif defined (USE_MB2MB)
     return locale_fast (string, from);
 #else
+    VLC_UNUSED(from);
     return strdup (string);
 #endif
 }
@@ -183,6 +185,8 @@ void LocaleFree (const char *str)
         free ((char *)str);
 #elif defined (USE_MB2MB)
     free ((char *)str);
+#else
+    VLC_UNUSED(str);
 #endif
 }
 




More information about the vlc-devel mailing list