From: Mark W. <ma...@so...> - 2024-11-26 21:15:26
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=c08e155fdf6641a569053b3a70c52bfae09dd34c commit c08e155fdf6641a569053b3a70c52bfae09dd34c Author: Mark Wielaard <ma...@kl...> Date: Sat Nov 23 22:48:03 2024 +0100 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) Diff: --- drd/tests/swapcontext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drd/tests/swapcontext.c b/drd/tests/swapcontext.c index 2cb969a5ea..ec191968ca 100644 --- a/drd/tests/swapcontext.c +++ b/drd/tests/swapcontext.c @@ -20,7 +20,7 @@ #define STACKSIZE (PTHREAD_STACK_MIN + 4096) -typedef struct thread_local { +typedef struct threadlocal { ucontext_t uc[3]; size_t nrsw; } thread_local_t; |