summaryrefslogtreecommitdiffstats
path: root/common/localename.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2017-03-07 02:42:46 +0100
committerNIIBE Yutaka <gniibe@fsij.org>2017-03-07 02:42:46 +0100
commitb9ab733fc0dd2ca2a7eaac0bde3a817c07af36c5 (patch)
tree17cb543bcf9e912bce55f99a5c9aa25166a334e5 /common/localename.c
parenttools: More portable for openpty use. (diff)
downloadgnupg2-b9ab733fc0dd2ca2a7eaac0bde3a817c07af36c5.tar.xz
gnupg2-b9ab733fc0dd2ca2a7eaac0bde3a817c07af36c5.zip
common: Fix warning for portability.
* common/localename.c (do_nl_locale_name): We don't use CATEGORY. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
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 2650ea7ec..b620a741f 100644
--- a/common/localename.c
+++ b/common/localename.c
@@ -79,6 +79,7 @@ do_nl_locale_name (int category, const char *categoryname)
(void)categoryname;
retval = setlocale (category, NULL);
# else
+ (void)category;
/* Setting of LC_ALL overwrites all other. */
retval = getenv ("LC_ALL");
if (retval == NULL || retval[0] == '\0')