어떤 경우에 이런 메세지가 나오나요? warning control reaches end of non-void function
흠.. 해석이 어려운 것도 아닌데... -) void형을 return하는 function이 아닌데 return하는 것이 없다는 뜻입니다.
int foo(int anArg) { anArg++; } 이렇게 int형인데 return안 해 주면 그런 에러가 나겠죠.(warning이군 요..)
에러 wrote.. 어떤 경우에 이런 메세지가 나오나요? warning control reaches end of non-void function
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
Re: 이 경고 메세지 뜻이 뭔가요?
흠.. 해석이 어려운 것도 아닌데... -)
void형을 return하는 function이 아닌데 return하는 것이
없다는 뜻입니다.
int foo(int anArg) {
anArg++;
}
이렇게 int형인데 return안 해 주면 그런 에러가 나겠죠.(warning이군
요..)
에러 wrote..
어떤 경우에 이런 메세지가 나오나요?
warning control reaches end of non-void function
댓글 달기