오류내용

gcc컴파일러에서 잘 컴파일 되던 소스코드가 다른 컴파일러에서 아래 오류를 출력한다.

error: function declaration isn't a prototype [-Werror=strict-prototypes]

 

해결 방법

함수 파라미터가 없을때 void를 넣어줘야 한다.

bool Test(){...} // Fail
bool Test(void){...} // OK