summaryrefslogtreecommitdiff
path: root/src/lib/util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util.cc')
-rw-r--r--src/lib/util.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index 593d0e760..2e4671251 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -271,7 +271,10 @@ dvdomatic_setup_i18n (string lang)
putenv (e.c_str());
bindtextdomain ("libdvdomatic", mo_path().string().c_str());
-#endif
+#else
+ /* Hack to silence warning */
+ lang.clear ();
+#endif
#ifdef DVDOMATIC_POSIX
bindtextdomain ("libdvdomatic", POSIX_LOCALE_PREFIX);