* tests/test-thread_local.c (value0, value1, value2, value3): Put the
'thread_local' storage class specifier before the type.
2023-09-04 Bruno Haible <bruno@clisp.org>
+ 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.
/* ----------------------- 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)