* 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 <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 * 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