From: Bruno Haible <bruno@clisp.org>
Date: Sun, 4 Oct 2020 22:02:27 +0000 (+0200)
Subject: localename: Fix a couple of "unused parameter" warnings.
X-Git-Tag: v1.0~3584
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=0e23e6d308c0fa432b66ce1fdd6dfa94cd4a19b4;p=gnulib.git

localename: Fix a couple of "unused parameter" warnings.

Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.

* 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.
---

diff --git a/ChangeLog b/ChangeLog
index b7f3762362..83b92302d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2020-10-04  Bruno Haible  <bruno@clisp.org>
+
+	localename: Fix a couple of "unused parameter" warnings.
+	Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
+	<https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.
+	* 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  <bruno@clisp.org>
 
 	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;