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
				
			
		| 
						 | 
				
			
			@ -1050,7 +1050,7 @@ void clear_keyboard_but_mods(void) {
 | 
			
		|||
 *
 | 
			
		||||
 * FIXME: Needs documentation.
 | 
			
		||||
 */
 | 
			
		||||
void clear_keyboard_but_mods_and_keys() {
 | 
			
		||||
void clear_keyboard_but_mods_and_keys(void) {
 | 
			
		||||
#ifdef EXTRAKEY_ENABLE
 | 
			
		||||
    host_system_send(0);
 | 
			
		||||
    host_consumer_send(0);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -98,12 +98,12 @@ enum {
 | 
			
		|||
 | 
			
		||||
#    if (defined(ONESHOT_TIMEOUT) && (ONESHOT_TIMEOUT > 0))
 | 
			
		||||
static uint16_t oneshot_layer_time = 0;
 | 
			
		||||
inline bool     has_oneshot_layer_timed_out() {
 | 
			
		||||
inline bool     has_oneshot_layer_timed_out(void) {
 | 
			
		||||
    return TIMER_DIFF_16(timer_read(), oneshot_layer_time) >= ONESHOT_TIMEOUT && !(get_oneshot_layer_state() & ONESHOT_TOGGLED);
 | 
			
		||||
}
 | 
			
		||||
#        ifdef SWAP_HANDS_ENABLE
 | 
			
		||||
static uint16_t oneshot_swaphands_time = 0;
 | 
			
		||||
inline bool     has_oneshot_swaphands_timed_out() {
 | 
			
		||||
inline bool     has_oneshot_swaphands_timed_out(void) {
 | 
			
		||||
    return TIMER_DIFF_16(timer_read(), oneshot_swaphands_time) >= ONESHOT_TIMEOUT && (swap_hands_oneshot == SHO_ACTIVE);
 | 
			
		||||
}
 | 
			
		||||
#        endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -112,7 +112,7 @@ static bool    audio_initialized    = false;
 | 
			
		|||
static bool    audio_driver_stopped = true;
 | 
			
		||||
audio_config_t audio_config;
 | 
			
		||||
 | 
			
		||||
void audio_init() {
 | 
			
		||||
void audio_init(void) {
 | 
			
		||||
    if (audio_initialized) {
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			@ -185,7 +185,7 @@ bool audio_is_on(void) {
 | 
			
		|||
    return (audio_config.enable != 0);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void audio_stop_all() {
 | 
			
		||||
void audio_stop_all(void) {
 | 
			
		||||
    if (audio_driver_stopped) {
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -36,11 +36,11 @@ void set_voice(voice_type v) {
 | 
			
		|||
    voice = v;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void voice_iterate() {
 | 
			
		||||
void voice_iterate(void) {
 | 
			
		||||
    voice = (voice + 1) % number_of_voices;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void voice_deiterate() {
 | 
			
		||||
void voice_deiterate(void) {
 | 
			
		||||
    voice = (voice - 1 + number_of_voices) % number_of_voices;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -111,7 +111,7 @@ int16_t joystick_read_axis(uint8_t axis) {
 | 
			
		|||
    return ranged_val;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void joystick_read_axes() {
 | 
			
		||||
void joystick_read_axes(void) {
 | 
			
		||||
#if JOYSTICK_AXIS_COUNT > 0
 | 
			
		||||
    for (int i = 0; i < JOYSTICK_AXIS_COUNT; ++i) {
 | 
			
		||||
        if (joystick_axes[i].input_pin == JS_VIRTUAL_AXIS) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -238,7 +238,7 @@ __attribute__((weak)) void keyboard_pre_init_kb(void) {
 | 
			
		|||
 * FIXME: needs doc
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
__attribute__((weak)) void keyboard_post_init_user() {}
 | 
			
		||||
__attribute__((weak)) void keyboard_post_init_user(void) {}
 | 
			
		||||
 | 
			
		||||
/** \brief keyboard_post_init_kb
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -62,5 +62,5 @@ void process_audio_all_notes_off(void) {
 | 
			
		|||
    stop_all_notes();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
__attribute__((weak)) void audio_on_user() {}
 | 
			
		||||
__attribute__((weak)) void audio_off_user() {}
 | 
			
		||||
__attribute__((weak)) void audio_on_user(void) {}
 | 
			
		||||
__attribute__((weak)) void audio_off_user(void) {}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -344,7 +344,7 @@ bool get_autoshift_state(void) {
 | 
			
		|||
    return autoshift_flags.enabled;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
uint16_t get_generic_autoshift_timeout() {
 | 
			
		||||
uint16_t get_generic_autoshift_timeout(void) {
 | 
			
		||||
    return autoshift_timeout;
 | 
			
		||||
}
 | 
			
		||||
__attribute__((weak)) uint16_t get_autoshift_timeout(uint16_t keycode, keyrecord_t *record) {
 | 
			
		||||
| 
						 | 
				
			
			@ -484,7 +484,7 @@ void retroshift_poll_time(keyevent_t *event) {
 | 
			
		|||
    retroshift_time      = timer_read();
 | 
			
		||||
}
 | 
			
		||||
// Used to swap the times of Retro Shifted key and Auto Shift key that interrupted it.
 | 
			
		||||
void retroshift_swap_times() {
 | 
			
		||||
void retroshift_swap_times(void) {
 | 
			
		||||
    if (last_retroshift_time != 0 && autoshift_flags.in_progress) {
 | 
			
		||||
        uint16_t temp        = retroshift_time;
 | 
			
		||||
        retroshift_time      = last_retroshift_time;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -317,10 +317,10 @@ void music_task(void) {
 | 
			
		|||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
__attribute__((weak)) void music_on_user() {}
 | 
			
		||||
__attribute__((weak)) void music_on_user(void) {}
 | 
			
		||||
 | 
			
		||||
__attribute__((weak)) void midi_on_user() {}
 | 
			
		||||
__attribute__((weak)) void midi_on_user(void) {}
 | 
			
		||||
 | 
			
		||||
__attribute__((weak)) void music_scale_user() {}
 | 
			
		||||
__attribute__((weak)) void music_scale_user(void) {}
 | 
			
		||||
 | 
			
		||||
#endif // defined(AUDIO_ENABLE) || (defined(MIDI_ENABLE) && defined(MIDI_BASIC))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -127,7 +127,7 @@ static const uint16_t combinedmap_second[] PROGMEM = {STN_S2, STN_KL, STN_WL, ST
 | 
			
		|||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef STENO_ENABLE_ALL
 | 
			
		||||
void steno_init() {
 | 
			
		||||
void steno_init(void) {
 | 
			
		||||
    if (!eeconfig_is_enabled()) {
 | 
			
		||||
        eeconfig_init();
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -162,7 +162,7 @@ bool process_tap_dance(uint16_t keycode, keyrecord_t *record) {
 | 
			
		|||
    return true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void tap_dance_task() {
 | 
			
		||||
void tap_dance_task(void) {
 | 
			
		||||
    tap_dance_action_t *action;
 | 
			
		||||
 | 
			
		||||
    if (!active_td || timer_elapsed(last_tap_time) <= GET_TAPPING_TERM(active_td, &(keyrecord_t){})) return;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -454,10 +454,10 @@ void update_tri_layer(uint8_t layer1, uint8_t layer2, uint8_t layer3) {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
// TODO: remove legacy api
 | 
			
		||||
void matrix_init_quantum() {
 | 
			
		||||
void matrix_init_quantum(void) {
 | 
			
		||||
    matrix_init_kb();
 | 
			
		||||
}
 | 
			
		||||
void matrix_scan_quantum() {
 | 
			
		||||
void matrix_scan_quantum(void) {
 | 
			
		||||
    matrix_scan_kb();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -465,9 +465,9 @@ void matrix_scan_quantum() {
 | 
			
		|||
// Override these functions in your keymap file to play different tunes on
 | 
			
		||||
// different events such as startup and bootloader jump
 | 
			
		||||
 | 
			
		||||
__attribute__((weak)) void startup_user() {}
 | 
			
		||||
__attribute__((weak)) void startup_user(void) {}
 | 
			
		||||
 | 
			
		||||
__attribute__((weak)) void shutdown_user() {}
 | 
			
		||||
__attribute__((weak)) void shutdown_user(void) {}
 | 
			
		||||
 | 
			
		||||
void suspend_power_down_quantum(void) {
 | 
			
		||||
    suspend_power_down_kb();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue