]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
helgrind/tests/tc17_sembar.c: Remove bool typedef
authorMark Wielaard <mark@klomp.org>
Sat, 23 Nov 2024 21:37:14 +0000 (22:37 +0100)
committerMark Wielaard <mark@klomp.org>
Sat, 23 Nov 2024 22:15:44 +0000 (23:15 +0100)
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;
      | ^~~~~~~

helgrind/tests/tc17_sembar.c

index 36412a07e2065c0a968ffa9fb67ef0dec08e6cf6..ee40160b082d899cb3469d21e385903132ff44f1 100644 (file)
@@ -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)