From: Mark W. <ma...@so...> - 2024-11-26 21:15:36
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=459fa5b82df0d07cf871fc7359a060410052b82e commit 459fa5b82df0d07cf871fc7359a060410052b82e Author: Mark Wielaard <ma...@kl...> Date: Sat Nov 23 22:37:14 2024 +0100 helgrind/tests/tc17_sembar.c: Remove bool typedef Since C23 bool is a keyword. Also bool wasn't actually used. tc17_sembar.c:45:14: error: both 'long' and '_Bool' in declaration specifiers 45 | typedef long bool; | ^~~~ tc17_sembar.c:45:1: warning: useless type name in empty declaration 45 | typedef long bool; | ^~~~~~~ (cherry picked from commit 932bf2c027579c8d933b57ed80bb5842b390bdb3) Diff: --- helgrind/tests/tc17_sembar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helgrind/tests/tc17_sembar.c b/helgrind/tests/tc17_sembar.c index 36412a07e2..ee40160b08 100644 --- a/helgrind/tests/tc17_sembar.c +++ b/helgrind/tests/tc17_sembar.c @@ -42,7 +42,7 @@ typedef struct sem_t* xxx; } gomp_barrier_t; -typedef long bool; + void gomp_barrier_init (gomp_barrier_t *bar, unsigned count) |