summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-01-21 03:21:17 +1100
committerGitHub <noreply@github.com>2023-01-20 16:21:17 +0000
commitcf935d97ae479e7a1e1f2f2f248b93e52e4cc69e (patch)
treecb7dc41b774171ce7036f963941ce801e868d8cd /users
parent0f77ae6a20652c11bc252548bd28fd64f5fb6b97 (diff)
Fix functions with empty params (#19647)
* Fix functions with empty params * Found a bunch more
Diffstat (limited to 'users')
-rw-r--r--users/arkag/arkag.c4
-rw-r--r--users/d4mation/d4mation.c4
-rw-r--r--users/danielo515/danielo515.c4
-rw-r--r--users/edvorakjp/edvorakjp.c2
-rw-r--r--users/ericgebhart/extensions/oneshot.c4
-rwxr-xr-xusers/ericgebhart/oled/oled_stuff.c2
-rw-r--r--users/miles2go/babblePaste.c4
-rw-r--r--users/ninjonas/ninjonas.c2
-rw-r--r--users/spidey3/layer_rgb.c2
-rw-r--r--users/talljoe/macros.c6
10 files changed, 17 insertions, 17 deletions
diff --git a/users/arkag/arkag.c b/users/arkag/arkag.c
index e7c8218587..7074da18eb 100644
--- a/users/arkag/arkag.c
+++ b/users/arkag/arkag.c
@@ -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) {
diff --git a/users/d4mation/d4mation.c b/users/d4mation/d4mation.c
index 5aa58a9f0d..5d1092cd72 100644
--- a/users/d4mation/d4mation.c
+++ b/users/d4mation/d4mation.c
@@ -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 */
}
diff --git a/users/danielo515/danielo515.c b/users/danielo515/danielo515.c
index ea91ec55bf..1c7718f1d2 100644
--- a/users/danielo515/danielo515.c
+++ b/users/danielo515/danielo515.c
@@ -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) {
diff --git a/users/edvorakjp/edvorakjp.c b/users/edvorakjp/edvorakjp.c
index c95b03d981..3d3b5b0ae5 100644
--- a/users/edvorakjp/edvorakjp.c
+++ b/users/edvorakjp/edvorakjp.c
@@ -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);
diff --git a/users/ericgebhart/extensions/oneshot.c b/users/ericgebhart/extensions/oneshot.c
index 55c2fa1ae3..8d4dc2f29c 100644
--- a/users/ericgebhart/extensions/oneshot.c
+++ b/users/ericgebhart/extensions/oneshot.c
@@ -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;
diff --git a/users/ericgebhart/oled/oled_stuff.c b/users/ericgebhart/oled/oled_stuff.c
index a73b5b174d..f2c4f0f394 100755
--- a/users/ericgebhart/oled/oled_stuff.c
+++ b/users/ericgebhart/oled/oled_stuff.c
@@ -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());
}
diff --git a/users/miles2go/babblePaste.c b/users/miles2go/babblePaste.c
index cd032882bf..65c9981186 100644
--- a/users/miles2go/babblePaste.c
+++ b/users/miles2go/babblePaste.c
@@ -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 {
diff --git a/users/ninjonas/ninjonas.c b/users/ninjonas/ninjonas.c
index d66a5b008c..8d37641aa3 100644
--- a/users/ninjonas/ninjonas.c
+++ b/users/ninjonas/ninjonas.c
@@ -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;
diff --git a/users/spidey3/layer_rgb.c b/users/spidey3/layer_rgb.c
index 75a4b4c0a1..cff20898cd 100644
--- a/users/spidey3/layer_rgb.c
+++ b/users/spidey3/layer_rgb.c
@@ -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);
}
diff --git a/users/talljoe/macros.c b/users/talljoe/macros.c
index e9c9b521b7..1afc1ef7f6 100644
--- a/users/talljoe/macros.c
+++ b/users/talljoe/macros.c
@@ -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 {