- C4390 empty controlled statement found; is this the intent?
if (bFind==TRUE);
{
function();
}
if문의 여부와 상관없이 function()이 무조건 실행된다.
-
-C4520 multiple default constructors specified.
디폴트 생성자가 중복정의 되었을 때
CClass();
CClass(int value = 1);
-C4552 operator has no effect, expected operator with side-effect
의미없는 연산. 실수로 =을 생략한 경우가 많다.
if(bPlus == TRUE)
nValue + 2;
-C4715 :not all control paths return a value
리턴값이 존재하는 함수에서 리턴값 없이 종료되는 케이스가 존재. 함수 종료 후 잘못된 메모리 참조 오류가 발생할 수 있다.
BOOL func()
{
if (bSucc = TRUE)
{
return TRUE;
}
}




최근 덧글