diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-17 00:11:56 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-17 12:57:13 -0600 |
commit | fa8fd67d5b057ec50a424bfa6a000346e3744175 (patch) | |
tree | 02bb859e2a0de07c5c96c68d91666300646cc36a | |
parent | ab9103440ade87509a1a3bd1eaad0b5396a89d1e (diff) |
Don't forget to use (void) in signatures without arguments
-rw-r--r-- | cmd/sbc_harness/usb_keyboard.c | 2 | ||||
-rw-r--r-- | libcr/coroutine.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/sbc_harness/usb_keyboard.c b/cmd/sbc_harness/usb_keyboard.c index 0573dba..c9f5a6e 100644 --- a/cmd/sbc_harness/usb_keyboard.c +++ b/cmd/sbc_harness/usb_keyboard.c @@ -20,7 +20,7 @@ static uint8_t const hid_report_descriptor_keyboard[] = { TUD_HID_REPORT_DESC_KE static uint8_t kbd_ifc = 0; -void usb_keyboard_init() { +void usb_keyboard_init(void) { if (kbd_ifc) return; 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 |