Fix functions with empty params (#19647)
* Fix functions with empty params * Found a bunch more
This commit is contained in:
parent
0f77ae6a20
commit
cf935d97ae
170 changed files with 276 additions and 276 deletions
|
@ -19,11 +19,11 @@
|
|||
#define TYPING_SPEED_MAX_VALUE 200
|
||||
uint8_t typing_speed = 0;
|
||||
|
||||
void velocikey_accelerate() {
|
||||
void velocikey_accelerate(void) {
|
||||
if (typing_speed < TYPING_SPEED_MAX_VALUE) typing_speed += (TYPING_SPEED_MAX_VALUE / 50);
|
||||
}
|
||||
|
||||
void velocikey_decelerate() {
|
||||
void velocikey_decelerate(void) {
|
||||
static uint16_t decay_timer = 0;
|
||||
|
||||
if (timer_elapsed(decay_timer) > 500 || decay_timer == 0) {
|
||||
|
|
|
@ -7,12 +7,12 @@ bool process_record_keymap( uint16_t keycode, keyrecord_t *record ) {
|
|||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
void matrix_init_keymap() {
|
||||
void matrix_init_keymap(void) {
|
||||
/* If you want a matrix init specific to your keymap, you need to define this function in your keymap */
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
void matrix_scan_keymap() {
|
||||
void matrix_scan_keymap(void) {
|
||||
/* If you want a matrix scan specific to your keymap, you need to define this function in your keymap */
|
||||
}
|
||||
|
||||
|
|
|
@ -7,9 +7,9 @@ bool onMac = true;
|
|||
LEADER_EXTERNS();
|
||||
# ifdef RGBLIGHT_ENABLE
|
||||
|
||||
void leader_start_user() { rgblight_setrgb_range(5, 100, 199, 10, 15); };
|
||||
void leader_start_user(void) { rgblight_setrgb_range(5, 100, 199, 10, 15); };
|
||||
|
||||
void leader_end_user() { rgblight_setrgb_range(200, 200, 255, 10, 15); };
|
||||
void leader_end_user(void) { rgblight_setrgb_range(200, 200, 255, 10, 15); };
|
||||
# endif
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
|
|
|
@ -5,7 +5,7 @@ void matrix_init_user(void) {
|
|||
matrix_init_keymap();
|
||||
}
|
||||
|
||||
__attribute__((weak)) void matrix_init_keymap() {}
|
||||
__attribute__((weak)) void matrix_init_keymap(void) {}
|
||||
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
state = update_tri_layer_state(state, L_EDVORAKJP_LOWER, L_EDVORAKJP_RAISE, L_EDVORAKJP_ADJUST);
|
||||
|
|
|
@ -50,7 +50,7 @@ static int8_t set_modifier_state_all(oneshot_state new_state);
|
|||
static void set_modifier_state_all_from_to(oneshot_state oneshot_state_from, oneshot_state oneshot_state_to);
|
||||
static bool all_modifiers_are_off(void);
|
||||
|
||||
int8_t turnoff_oneshot_modifiers() {
|
||||
int8_t turnoff_oneshot_modifiers(void) {
|
||||
return set_modifier_state_all(ONESHOT_STATE_OFF);
|
||||
}
|
||||
|
||||
|
@ -163,7 +163,7 @@ void set_modifier_state_all_from_to(oneshot_state oneshot_state_from, oneshot_st
|
|||
}
|
||||
}
|
||||
|
||||
bool all_modifiers_are_off() {
|
||||
bool all_modifiers_are_off(void) {
|
||||
for (int8_t i = 0; i < ONESHOT_MOD_COUNT; i++) {
|
||||
if (modifiers_with_state[i] != ONESHOT_STATE_OFF) {
|
||||
return false;
|
||||
|
|
|
@ -47,7 +47,7 @@ void oled_render_mod_status(uint8_t modifiers) {
|
|||
oled_write_P(PSTR("G"), (modifiers & MOD_MASK_GUI));
|
||||
}
|
||||
|
||||
void oled_render_mod_lock_status(){
|
||||
void oled_render_mod_lock_status(void){
|
||||
oled_render_mod_status(get_mods() | get_oneshot_mods());
|
||||
oled_render_keylock_status(host_keyboard_leds());
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ __attribute__((weak)) void babble_modeswitch_kb(uint8_t mode) { babble_modeswitc
|
|||
|
||||
void set_babble_mode(uint8_t id) { babble_mode = id; }
|
||||
|
||||
void babble_mode_increment() {
|
||||
void babble_mode_increment(void) {
|
||||
babble_mode += 1;
|
||||
if (babble_mode >= BABL_MODEMAX) {
|
||||
babble_mode = 0;
|
||||
|
@ -31,7 +31,7 @@ void babble_mode_increment() {
|
|||
babble_modeswitch_kb(babble_mode);
|
||||
}
|
||||
|
||||
void babble_mode_decrement() {
|
||||
void babble_mode_decrement(void) {
|
||||
if (babble_mode >= 1) {
|
||||
babble_mode -= 1;
|
||||
} else {
|
||||
|
|
|
@ -22,7 +22,7 @@ layer_state_t layer_state_set_user (layer_state_t state) {
|
|||
#ifdef RGBLIGHT_ENABLE
|
||||
extern rgblight_config_t rgblight_config;
|
||||
#endif
|
||||
void keyboard_post_init_user() {
|
||||
void keyboard_post_init_user(void) {
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
// Cycles through the entire hue wheel and resetting to default color
|
||||
uint16_t default_hue = rgblight_config.hue;
|
||||
|
|
|
@ -99,7 +99,7 @@ const rgblight_segment_t *const PROGMEM _rgb_layers[] = {
|
|||
|
||||
const uint8_t PROGMEM _n_rgb_layers = ARRAY_SIZE(_rgb_layers) - 1;
|
||||
|
||||
void clear_rgb_layers() {
|
||||
void clear_rgb_layers(void) {
|
||||
for (uint8_t i = 0; i < _n_rgb_layers; i++) {
|
||||
rgblight_set_layer_state(i, false);
|
||||
}
|
||||
|
|
|
@ -29,9 +29,9 @@ ostype_t get_os() {
|
|||
|
||||
#define MOD_SEND(KEY) (IS_OSX() ? SEND_STRING(SS_LCMD(KEY)) : SEND_STRING(SS_LCTL(KEY)))
|
||||
|
||||
void macro_copy() { MOD_SEND("c"); }
|
||||
void macro_paste() { MOD_SEND("v"); }
|
||||
void macro_lock() {
|
||||
void macro_copy(void) { MOD_SEND("c"); }
|
||||
void macro_paste(void) { MOD_SEND("v"); }
|
||||
void macro_lock(void) {
|
||||
if (IS_OSX()) {
|
||||
SEND_STRING(SS_LCTL(SS_LCMD("q")));
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue