From 9566b8da4846748f7c02f72df369fe1d6f945fe1 Mon Sep 17 00:00:00 2001 From: Alessandro Mauri Date: Mon, 1 Jun 2026 19:24:10 +0200 Subject: [PATCH] suppress unused warnings with coro_end() --- fw/coroutine.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fw/coroutine.h b/fw/coroutine.h index 7a79a10..8271d88 100644 --- a/fw/coroutine.h +++ b/fw/coroutine.h @@ -157,7 +157,8 @@ typedef void* coro_state_t; unsigned char __yield = 0; \ do { if(*s != NULL) goto *(*s); } while (0) -#define coro_end() +// Just to suppress the unused variable warning when no yield is used +#define coro_end() (void)__yield // Set a jump with a gcc label as value feature, this is a GNU C extension #define CORO_SET_JUMP(s) CORO_CHECK_TYPE(s, coro_state_t*) \