[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: avoid recent -Werror=unused-variable regression in test-l
From: |
Pádraig Brady |
Subject: |
[PATCH] tests: avoid recent -Werror=unused-variable regression in test-locale |
Date: |
Wed, 11 Feb 2015 03:54:45 +0000 |
* 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 f4de4fe..c4cb47f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2015-02-11 Pádraig Brady <address@hidden>
+ 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 <address@hidden>
+
maint: various whitespace cleanups in tempname
* lib/tempname.c: Normalize spacing and line length.
* lib/tempname.h: Likewise.
diff --git a/tests/test-locale.c b/tests/test-locale.c
index ad1b679..5383cff 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.1.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] tests: avoid recent -Werror=unused-variable regression in test-locale,
Pádraig Brady <=