From 6e0e31c383c86e297bfbb8dae89515b0587a1b15 Mon Sep 17 00:00:00 2001
From: =?utf8?q?P=C3=A1draig=20Brady?= <P@draigBrady.com>
Date: Wed, 11 Feb 2015 03:52:57 +0000
Subject: [PATCH] tests: avoid recent -Werror=unused-variable regression in
 test-locale

* tests/test-locale.c (main): Reference the variable to avoid the
"unused variable" warning.
---
 ChangeLog           | 6 ++++++
 tests/test-locale.c | 1 +
 2 files changed, 7 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index f4de4fec89..c4cb47f880 100644
--- 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
diff --git a/tests/test-locale.c b/tests/test-locale.c
index ad1b6791b4..5383cff4c6 100644
--- a/tests/test-locale.c
+++ b/tests/test-locale.c
@@ -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.  */
-- 
2.39.5