From 8f881c7a400352354117fc43777445605c7ea68e Mon Sep 17 00:00:00 2001 From: Drashna Jael're Date: Fri, 13 Dec 2024 13:14:56 -0800 Subject: [PATCH] Fix unimportant erros" --- quantum/action.c | 4 ++-- quantum/action_layer.c | 2 +- quantum/action_util.c | 2 +- quantum/keymap_common.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/quantum/action.c b/quantum/action.c index 06998d757c3d..29200f15f223 100644 --- a/quantum/action.c +++ b/quantum/action.c @@ -307,7 +307,7 @@ void process_record(keyrecord_t *record) { void process_record_handler(keyrecord_t *record) { #if defined(COMBO_ENABLE) || defined(REPEAT_KEY_ENABLE) - action_t action; + action_t action = {0}; if (record->keycode) { action = action_for_keycode(record->keycode); } else { @@ -1153,7 +1153,7 @@ bool is_tap_record(keyrecord_t *record) { } #if defined(COMBO_ENABLE) || defined(REPEAT_KEY_ENABLE) - action_t action; + action_t action = {0}; if (record->keycode) { action = action_for_keycode(record->keycode); } else { diff --git a/quantum/action_layer.c b/quantum/action_layer.c index 7c09a5bd1e54..b3ff5839826c 100644 --- a/quantum/action_layer.c +++ b/quantum/action_layer.c @@ -322,7 +322,7 @@ action_t store_or_get_action(bool pressed, keypos_t key) { */ uint8_t layer_switch_get_layer(keypos_t key) { #ifndef NO_ACTION_LAYER - action_t action; + action_t action = {0}; action.code = ACTION_TRANSPARENT; layer_state_t layers = layer_state | default_layer_state; diff --git a/quantum/action_util.c b/quantum/action_util.c index c0dc4f38228e..f597d45de2c1 100644 --- a/quantum/action_util.c +++ b/quantum/action_util.c @@ -210,7 +210,7 @@ void clear_oneshot_layer_state(oneshot_fullfillment_t state) { * FIXME: needs doc */ bool is_oneshot_layer_active(void) { - return get_oneshot_layer_state(); + return (bool)get_oneshot_layer_state(); } /** \brief set oneshot diff --git a/quantum/keymap_common.c b/quantum/keymap_common.c index 49ec52841fb2..3c4b1d2fcd0a 100644 --- a/quantum/keymap_common.c +++ b/quantum/keymap_common.c @@ -56,7 +56,7 @@ action_t action_for_keycode(uint16_t keycode) { // keycode remapping keycode = keycode_config(keycode); - action_t action = {}; + action_t action = {0}; uint8_t action_layer, mod; (void)action_layer;