1
0
Fork 0

Fix unimportant erros"

This commit is contained in:
Drashna Jael're 2024-12-13 13:14:56 -08:00
parent 82aed74e67
commit ec0c7ed934
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) { void process_record_handler(keyrecord_t *record) {
#if defined(COMBO_ENABLE) || defined(REPEAT_KEY_ENABLE) #if defined(COMBO_ENABLE) || defined(REPEAT_KEY_ENABLE)
action_t action; action_t action = {0};
if (record->keycode) { if (record->keycode) {
action = action_for_keycode(record->keycode); action = action_for_keycode(record->keycode);
} else { } else {
@ -1153,7 +1153,7 @@ bool is_tap_record(keyrecord_t *record) {
} }
#if defined(COMBO_ENABLE) || defined(REPEAT_KEY_ENABLE) #if defined(COMBO_ENABLE) || defined(REPEAT_KEY_ENABLE)
action_t action; action_t action = {0};
if (record->keycode) { if (record->keycode) {
action = action_for_keycode(record->keycode); action = action_for_keycode(record->keycode);
} else { } 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) { uint8_t layer_switch_get_layer(keypos_t key) {
#ifndef NO_ACTION_LAYER #ifndef NO_ACTION_LAYER
action_t action; action_t action = {0};
action.code = ACTION_TRANSPARENT; action.code = ACTION_TRANSPARENT;
layer_state_t layers = layer_state | default_layer_state; 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 * FIXME: needs doc
*/ */
bool is_oneshot_layer_active(void) { bool is_oneshot_layer_active(void) {
return get_oneshot_layer_state(); return (bool)get_oneshot_layer_state();
} }
/** \brief set oneshot /** \brief set oneshot

View file

@ -56,7 +56,7 @@ action_t action_for_keycode(uint16_t keycode) {
// keycode remapping // keycode remapping
keycode = keycode_config(keycode); keycode = keycode_config(keycode);
action_t action = {}; action_t action = {0};
uint8_t action_layer, mod; uint8_t action_layer, mod;
(void)action_layer; (void)action_layer;