From: Bruno Haible Date: Mon, 4 Sep 2023 14:39:07 +0000 (+0200) Subject: threads-h tests: Fix gcc -Wold-style-declaration warning. X-Git-Tag: v1.0~832 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=9ec558f7050dc5a0d1f9b27b300152067f6dc6b4;p=gnulib.git threads-h tests: Fix gcc -Wold-style-declaration warning. * tests/test-thread_local.c (value0, value1, value2, value3): Put the 'thread_local' storage class specifier before the type. --- diff --git a/ChangeLog b/ChangeLog index 6c3279f26b..852a4e2e3c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2023-09-04 Bruno Haible + threads-h tests: Fix gcc -Wold-style-declaration warning. + * tests/test-thread_local.c (value0, value1, value2, value3): Put the + 'thread_local' storage class specifier before the type. + ieee754-h tests: Fix some gcc -Wmissing-field-initializers warnings. * tests/test-ieee754-h.c (float_tests): Use float literals. (double_tests): Use double literals. Initialize frac_lo. diff --git a/tests/test-thread_local.c b/tests/test-thread_local.c index c30ad10238..28536535ff 100644 --- a/tests/test-thread_local.c +++ b/tests/test-thread_local.c @@ -84,10 +84,10 @@ perhaps_yield (void) /* ----------------------- Test thread-local storage ----------------------- */ #define KEYS_COUNT 4 -static unsigned int thread_local value0; -static unsigned int thread_local value1; -static unsigned int thread_local value2; -static unsigned int thread_local value3; +static thread_local unsigned int value0; +static thread_local unsigned int value1; +static thread_local unsigned int value2; +static thread_local unsigned int value3; static int worker_thread (void *arg)