C언어,ARM

warning: function declaration isn't a prototype

안녕1999 2019. 4. 27. 22:32

warning: function declaration isn't a prototype

원인 : 함수 파라메터값이 void인 경우, ()로 표시할 수 있으나, 일부 컴파일러에서는 (void)로 해야함.

예) void func1()  =>  void func1(void)