]> Savannah Git Hosting - gnulib.git/commitdiff
tests: avoid recent -Werror=unused-variable regression in test-locale
authorPádraig Brady <P@draigBrady.com>
Wed, 11 Feb 2015 03:52:57 +0000 (03:52 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 11 Feb 2015 03:54:38 +0000 (03:54 +0000)
* tests/test-locale.c (main): Reference the variable to avoid the
"unused variable" warning.

ChangeLog
tests/test-locale.c

index f4de4fec8939270f87923fc1d108d4b02a026269..c4cb47f8803ac556621734be5f21d788ea89e2a3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-02-11  Pádraig Brady  <P@draigBrady.com>
+
+       tests: avoid recent -Werror=unused-variable regression in test-locale
+       * tests/test-locale.c (main): Reference the variable to avoid the
+       "unused variable" warning.
+
 2015-02-11  Pádraig Brady  <P@draigBrady.com>
 
        maint: various whitespace cleanups in tempname
index ad1b6791b41de057018bd14d7cafccca1f93101a..5383cff4c6441f141206214379f2eda9ffead92e 100644 (file)
@@ -47,6 +47,7 @@ main ()
 #if HAVE_NEWLOCALE
   /* Check that the locale_t type and the LC_GLOBAL_LOCALE macro are defined.  */
   locale_t b = LC_GLOBAL_LOCALE;
+  (void) b;
 #endif
 
   /* Check that 'struct lconv' has the ISO C and POSIX specified members.  */