summaryrefslogtreecommitdiffstats
path: root/common/localename.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/localename.c')
-rw-r--r--common/localename.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/localename.c b/common/localename.c
index 68b93bc81..cb7fcc2f7 100644
--- a/common/localename.c
+++ b/common/localename.c
@@ -65,6 +65,7 @@ do_nl_locale_name (int category, const char *categoryname)
/* Use the POSIX methods of looking to 'LC_ALL', 'LC_xxx', and 'LANG'.
On some systems this can be done by the 'setlocale' function itself. */
# if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL
+ (void)categoryname;
retval = setlocale (category, NULL);
# else
/* Setting of LC_ALL overwrites all other. */