From 0e23e6d308c0fa432b66ce1fdd6dfa94cd4a19b4 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 5 Oct 2020 00:02:27 +0200 Subject: [PATCH] localename: Fix a couple of "unused parameter" warnings. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reported by Marc Nieper-Wißkirchen in . * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread, gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in parameter list. --- ChangeLog | 9 +++++++++ lib/localename.c | 8 ++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index b7f3762362..83b92302d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2020-10-04 Bruno Haible + + localename: Fix a couple of "unused parameter" warnings. + Reported by Marc Nieper-Wißkirchen in + . + * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread, + gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in + parameter list. + 2020-10-04 Bruno Haible vasnprintf: Don't use %n on modern, ISO C 99 compliant platforms. diff --git a/lib/localename.c b/lib/localename.c index 5731cebf31..1bf47edbc7 100644 --- a/lib/localename.c +++ b/lib/localename.c @@ -3114,7 +3114,7 @@ freelocale (locale_t locale) static # endif const char * -gl_locale_name_thread_unsafe (int category, const char *categoryname) +gl_locale_name_thread_unsafe (int category, const char *categoryname _GL_UNUSED) { # if HAVE_GOOD_USELOCALE { @@ -3229,7 +3229,7 @@ gl_locale_name_thread_unsafe (int category, const char *categoryname) #endif const char * -gl_locale_name_thread (int category, const char *categoryname) +gl_locale_name_thread (int category, const char *categoryname _GL_UNUSED) { #if HAVE_GOOD_USELOCALE const char *name = gl_locale_name_thread_unsafe (category, categoryname); @@ -3253,7 +3253,7 @@ gl_locale_name_thread (int category, const char *categoryname) #endif const char * -gl_locale_name_posix (int category, const char *categoryname) +gl_locale_name_posix (int category, const char *categoryname _GL_UNUSED) { #if defined WINDOWS_NATIVE if (LC_MIN <= category && category <= LC_MAX) @@ -3318,7 +3318,7 @@ gl_locale_name_posix (int category, const char *categoryname) } const char * -gl_locale_name_environ (int category, const char *categoryname) +gl_locale_name_environ (int category _GL_UNUSED, const char *categoryname) { const char *retval; -- 2.39.5