]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
fixed function to not accept any arguments.
authorOle Anders <git@swoy.org>
Tue, 28 Mar 2017 15:08:01 +0000 (17:08 +0200)
committerOle Anders <git@swoy.org>
Tue, 28 Mar 2017 15:08:01 +0000 (17:08 +0200)
As per Pramod's comment on stack overflow:

In C int foo() and int foo(void) are different functions. int foo()
accepts an arbitrary number of arguments, while int foo(void) accepts 0
arguments. In C++ they mean the same thing. I suggest that you use void
consistently when you mean no arguments.

keyboards/satan/keymaps/admiralStrokers/keymap.c

index 72a4c3dc9a7530c35b3c4c9e4e36238d7ce49371..7a8459eb56fc124abf3b214166bc805ddc52cff1 100644 (file)
@@ -146,7 +146,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
 
 const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { // MACRODOWN only works in this function
        
-       bool checkTime(){
+       bool checkTime(void){
                return (timer_elapsed(key_timer) < 150) ? true : false;
        }