changeset 17901:cf58d1b54a23

tests: avoid recent -Werror=unused-variable regression in test-locale * tests/test-locale.c (main): Reference the variable to avoid the "unused variable" warning.
author Pádraig Brady <P@draigBrady.com>
date Wed, 11 Feb 2015 03:52:57 +0000
parents c4e49082f4e2
children 4578584def8a
files ChangeLog tests/test-locale.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/tests/test-locale.c
+++ b/tests/test-locale.c
@@ -47,6 +47,7 @@
 #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.  */