cyclictest: Fix BUILD failure for GCC_VER < 14
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())
Signed-off-by Suneeth D <[email protected]>
---
Based on: fd45df830803dd7f26d2ca8bdcf05fd7e0d62ae8 (rt-tests/main)
src/cyclictest/cyclictest.c | 1 + 1 file changed, 1 insertion(+)
src/cyclictest/cyclictest.c +1 -0
@@ -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
Quoted 6 lines · Suneeth D
timerthread()uses bool, which fails to compile under -Werror whenstdbool.his not included.Fixes 98fcd661ac59 (cyclictest: Acquire a lock before invoking pthread_cond_signal())Signed-off-by Suneeth D <[email protected]>
Reviewed-by Sebastian Andrzej Siewior <[email protected]>
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