summaryrefslogtreecommitdiff
path: root/libcr
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-22 15:06:50 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-05-06 11:50:46 -0600
commit39d8fd2161d0a505c5b25add023aad833714b980 (patch)
tree4df71809eb36dc83243baf6fbbc2fdcc799c8051 /libcr
parenta9c86c0670f7ed763dedc9cc59dd288d5cc1011b (diff)
Use C23
This gives us: - [[maybe_unused]] instead of [[gnu::unused]] - bool/true/false are predefined, so no need for <stdbool.h>
Diffstat (limited to 'libcr')
-rw-r--r--libcr/coroutine.c2
-rw-r--r--libcr/include/libcr/coroutine.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/libcr/coroutine.c b/libcr/coroutine.c
index 2c605fc..cf63122 100644
--- a/libcr/coroutine.c
+++ b/libcr/coroutine.c
@@ -349,7 +349,7 @@ static_assert(CONFIG_COROUTINE_NUM > 1);
uintptr_t sp;
#endif
} cr_plat_jmp_buf;
- static void _cr_plat_setjmp_pre(cr_plat_jmp_buf *env [[gnu::unused]]) {
+ static void _cr_plat_setjmp_pre(cr_plat_jmp_buf *env [[maybe_unused]]) {
#if CONFIG_COROUTINE_MEASURE_STACK
env->sp = cr_plat_get_sp();
#endif
diff --git a/libcr/include/libcr/coroutine.h b/libcr/include/libcr/coroutine.h
index 2505782..f72dc96 100644
--- a/libcr/include/libcr/coroutine.h
+++ b/libcr/include/libcr/coroutine.h
@@ -27,7 +27,6 @@
#define _LIBCR_COROUTINE_H_
#include <stddef.h> /* for size_t */
-#include <stdbool.h> /* for bool */
/* Configuration **************************************************************/