Skip to contentSkip to conversation

cyclictest: Fix BUILD failure for GCC_VER < 14

PATCH Superseded Suneeth D 2 participants 2 messages Sep 1

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Suneeth D

author
#0 lore raw

PATCH 1/1 cyclictest: Fix BUILD failure for GCC_VER < 14

timerthread() uses bool, which fails to compile under -Werror when stdbool.h is not included.

Fixes 98fcd661ac59 (cyclictest: Acquire a lock before invoking pthread_cond_signal())

---

Based on: fd45df830803dd7f26d2ca8bdcf05fd7e0d62ae8 (rt-tests/main)

 src/cyclictest/cyclictest.c | 1 +
 1 file changed, 1 insertion(+)
src/cyclictest/cyclictest.c +1 -0
index 99194378f946..58b56bcede0f 100644
@@ -15,6 +15,7 @@
 #include <stdlib.h>
 #include <stdint.h>
 #include <stdarg.h>
+#include <stdbool.h>
 #include <unistd.h>
 #include <fcntl.h>
 #include <getopt.h>
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Suneeth D

timerthread() uses bool, which fails to compile under -Werror when stdbool.h is not included.

Fixes 98fcd661ac59 (cyclictest: Acquire a lock before invoking pthread_cond_signal())

Maybe mention that the default changed since GCC 15 switched to C23 like mention by Tomas Glozar. This might look like I don't compile my things but it is fine as it is ;)

Sebastian