From: Pádraig Brady
Date: Wed, 11 Feb 2015 03:52:57 +0000 (+0000) Subject: tests: avoid recent -Werror=unused-variable regression in test-locale X-Git-Tag: v1.0~7157 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=6e0e31c383c86e297bfbb8dae89515b0587a1b15;p=gnulib.git tests: avoid recent -Werror=unused-variable regression in test-locale * tests/test-locale.c (main): Reference the variable to avoid the "unused variable" warning. --- diff --git a/ChangeLog b/ChangeLog index f4de4fec89..c4cb47f880 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-02-11 Pádraig Brady
+ + 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
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. */