From 4aa5447174e43915a065eb66fa3cc4c09ce8aa0d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 4 Sep 2023 16:39:07 +0200 Subject: [PATCH] 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. --- ChangeLog | 4 ++++ tests/test-thread_local.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index d4af58378f..bf44c670fc 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) -- 2.39.5