Skip to content

Commit

Permalink
fix(build): Modify function return type
Browse files Browse the repository at this point in the history
Change return type of `sticky_key_timeout` function to `void` given it
does not return any value to remove compiler warnings.
  • Loading branch information
huber-th authored and petejohanson committed Mar 27, 2024
1 parent e806cd6 commit 58ccc59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/behaviors/behavior_sticky_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static inline int release_sticky_key_behavior(struct active_sticky_key *sticky_k
return behavior_keymap_binding_released(&binding, event);
}

static inline int on_sticky_key_timeout(struct active_sticky_key *sticky_key) {
static inline void on_sticky_key_timeout(struct active_sticky_key *sticky_key) {
// If the key is lazy, a release is not needed on timeout
if (sticky_key->config->lazy) {
clear_sticky_key(sticky_key);
Expand Down

0 comments on commit 58ccc59

Please sign in to comment.