diff options
author | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2023-11-01 19:37:08 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2023-11-06 13:28:28 -0500 |
commit | c5459df18879dad8f5388480d588edbcbd1b7eb2 (patch) | |
tree | a192b886c9015b1f01488674de4cf6d49851d677 /src | |
parent | 7bb11f75c50386ca4ac7af32365754135a027193 (diff) | |
download | musl-c5459df18879dad8f5388480d588edbcbd1b7eb2.tar.gz musl-c5459df18879dad8f5388480d588edbcbd1b7eb2.tar.xz musl-c5459df18879dad8f5388480d588edbcbd1b7eb2.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/time/timer_create.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |