Skip to content

Commit

Permalink
Fix unimportant erros"
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna committed Dec 15, 2024
1 parent 8c6a8bd commit 8f881c7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions quantum/action.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion quantum/action_layer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion quantum/action_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion quantum/keymap_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8f881c7

Please sign in to comment.