summaryrefslogtreecommitdiff
path: root/libcr/coroutine.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-05-17 00:11:56 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-05-17 12:57:13 -0600
commitfa8fd67d5b057ec50a424bfa6a000346e3744175 (patch)
tree02bb859e2a0de07c5c96c68d91666300646cc36a /libcr/coroutine.c
parentab9103440ade87509a1a3bd1eaad0b5396a89d1e (diff)
Don't forget to use (void) in signatures without arguments
Diffstat (limited to 'libcr/coroutine.c')
-rw-r--r--libcr/coroutine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcr/coroutine.c b/libcr/coroutine.c
index 920c371..baa559b 100644
--- a/libcr/coroutine.c
+++ b/libcr/coroutine.c
@@ -685,7 +685,7 @@ void cr_begin(void) {
cr_restore_interrupts(saved);
}
-static inline void _cr_yield() {
+static inline void _cr_yield(void) {
cid_t next;
while ( !((next = coroutine_ringbuf_pop())) ) {
/* No coroutines are runnable, wait for an interrupt