]> 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>
Mon, 25 Nov 2024 21:29:58 +0000 (22:29 +0100)
commitc08e155fdf6641a569053b3a70c52bfae09dd34c
treec4cb1ce91de2107d5952b0449cad4b8e79f1d3ea
parent459fa5b82df0d07cf871fc7359a060410052b82e
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;
      |   ^~~~~~~~~~~~~~

(cherry picked from commit 907b985725805f1537396a6d76539bf490cc6c7e)
drd/tests/swapcontext.c