From c5459df18879dad8f5388480d588edbcbd1b7eb2 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Wed, 1 Nov 2023 19:37:08 -0400 Subject: 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(-) (limited to 'src/time/timer_create.c') 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; -- cgit v1.2.1