From f185dd6615443230fb09fd68e40a88bf7034c7f2 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 1 Sep 2015 21:21:25 +0200 Subject: [PATCH] translation.cpp: avoid warning when compiling without libintl --- src/common/translation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/translation.cpp b/src/common/translation.cpp index 55bb283ed..6a6cb4067 100644 --- a/src/common/translation.cpp +++ b/src/common/translation.cpp @@ -133,9 +133,10 @@ translation_c::look_up_translation(int language_id, int sub_language_id) { std::string translation_c::get_default_ui_locale() { std::string locale; - bool debug = debugging_c::requested("locale"); #if defined(HAVE_LIBINTL_H) + bool debug = debugging_c::requested("locale"); + # if defined(SYS_WINDOWS) std::string env_var = mtx::sys::get_environment_variable("LC_MESSAGES"); if (!env_var.empty() && (-1 != look_up_translation(env_var)))