Fix unimportant erros"

This commit is contained in:
Drashna Jael're 2024-12-13 13:14:56 -08:00
parent 0d7f817975
commit 8041565c15
Signed by: drashna
GPG key ID: DBA1FD3A860D1B11
4 changed files with 5 additions and 5 deletions

View file

@ -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 {

View file

@ -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;

View file

@ -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

View file

@ -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;