Warning-control reaches end of non-void function [-Wreturn-type]

CODEDRAGON Development/C, C++

반응형

   

Warning-control reaches end of non-void function [-Wreturn-type]

control reaches end of non-void function [-Wreturn-type]

  

   

   

원리

return구문이 빠져있을 경우 발생합니다.

   

   

   

해결방법

return 0; 구문을 삽입하여 반환 및 종료 수행

   

반응형