]> Savannah Git Hosting - gnulib.git/commitdiff
localename: Fix a couple of "unused parameter" warnings.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Oct 2020 22:02:27 +0000 (00:02 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Oct 2020 22:02:27 +0000 (00:02 +0200)
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.

ChangeLog
lib/localename.c

index b7f3762362101d4313e7891cc1a4976201c1d150..83b92302d90e2a2ea0abb3a31552b616636720b9 100644 (file)
--- 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.
index 5731cebf3152abdae416ee96f51d11f930b09989..1bf47edbc760ae78b67b655c0904b1890ea8bc42 100644 (file)
@@ -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;