소스 검색

fixed function to not accept any arguments.

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.
Ole Anders 8 년 전
부모
커밋
256abc64d5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      keyboards/satan/keymaps/admiralStrokers/keymap.c

+ 1 - 1
keyboards/satan/keymaps/admiralStrokers/keymap.c

@@ -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;
 	}