Skip to content

Commit

Permalink
events: add missing return type
Browse files Browse the repository at this point in the history
The missing return type causes it to be defaulted to `int`,
which subsequently results in a compilation error if
`-Werror=return-type` or similar is set.

Fixes: 9da7bdb ("events: add placeholder function instead of #if")
  • Loading branch information
LucasFA authored and pobrn committed Jan 7, 2025
1 parent 6305ec3 commit 2ab3bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion events.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static void emit_keyboard_led_hw_changed(void)
up_read(&leds_list_lock);
}
#else
static inline emit_keyboard_led_hw_changed(void)
static inline void emit_keyboard_led_hw_changed(void)
{ }
#endif

Expand Down

0 comments on commit 2ab3bcd

Please sign in to comment.