From 5b7b756c1fbedc823319ec474cf56a22d978b8f4 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Wed, 1 Nov 2023 19:37:08 -0400 Subject: [PATCH 1/2] timer_create: volatile static -> static volatile C11 6.11.5p1: > The placement of a storage-class specifier other than at the > beginning of the declaration specifiers in a declaration is an > obsolescent feature. gcc also warns about this. --- src/time/timer_create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/time/timer_create.c b/src/time/timer_create.c index cd32c945..9216b3ab 100644 --- a/src/time/timer_create.c +++ b/src/time/timer_create.c @@ -61,7 +61,7 @@ static void *start(void *arg) int timer_create(clockid_t clk, struct sigevent *restrict evp, timer_t *restrict res) { - volatile static int init = 0; + static volatile int init = 0; pthread_t td; pthread_attr_t attr; int r; -- 2.42.0