]> git.ipfire.org Git - thirdparty/valgrind.git/commit
drd/tests/swapcontext.c: Rename typedef struct thread_local to threadlocal
authorMark Wielaard <mark@klomp.org>
Sat, 23 Nov 2024 21:48:03 +0000 (22:48 +0100)
committerMark Wielaard <mark@klomp.org>
Sat, 23 Nov 2024 22:15:53 +0000 (23:15 +0100)
commit907b985725805f1537396a6d76539bf490cc6c7e
treebff1db00642ced8e2304e1f74cb4787e14d76beb
parent932bf2c027579c8d933b57ed80bb5842b390bdb3
drd/tests/swapcontext.c: Rename typedef struct thread_local to threadlocal

Since C23 thread_local is a keyword (thread storage duration).

swapcontext.c:23:16: error: expected '{' before 'thread_local'
   23 | typedef struct thread_local {
      |                ^~~~~~~~~~~~
swapcontext.c:23:16: warning: 'thread_local' is not at beginning of declaration [-Wold-style-declaration]
swapcontext.c:23:16: error: 'thread_local' used with 'typedef'
swapcontext.c:26:3: warning: data definition has no type or storage class
   26 | } thread_local_t;
      |   ^~~~~~~~~~~~~~
drd/tests/swapcontext.c