From 942c209cabe46478566cd71d04b2b66f1267847b Mon Sep 17 00:00:00 2001 From: Christoph Sommer Date: Tue, 27 Jun 2006 11:08:42 +0000 Subject: [PATCH] Fixed (fatal) compiler warnings on Windows SVN-Revision: 3776 --- src/tinygettext/findlocale.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tinygettext/findlocale.cpp b/src/tinygettext/findlocale.cpp index da3fa1c55..04d1fb4b8 100644 --- a/src/tinygettext/findlocale.cpp +++ b/src/tinygettext/findlocale.cpp @@ -134,6 +134,7 @@ accumulate_locstring(const char *str, FL_Locale *l) { } +#ifndef WIN32 static int accumulate_env(const char *name, FL_Locale *l) { char *env; @@ -147,7 +148,7 @@ accumulate_env(const char *name, FL_Locale *l) { free(lang); free(country); free(variant); return 0; } - +#endif static void canonise_fl(FL_Locale *l) { @@ -420,7 +421,9 @@ lcid_to_fl(LCID lcid, FL_Locale *rtn) { LANGID langid = LANGIDFROMLCID(lcid); LANGID primary_lang = PRIMARYLANGID(langid); +#if 0 LANGID sub_lang = SUBLANGID(langid); +#endif int i; /* try to find an exact primary/sublanguage combo that we know about */ for (i=0; i