|
음냐 계속 질문만 해서 죄송합니다만 빌더 5에서는 안뜨던 Warning이
빌더 6에서는 코드를 그대로 가져와서 컴파일 한 것 뿐인데도 이런게 계속해서 여러 개 뜨네요...
[C++ Warning] _prolog.h(47): W8059 Structure packing size has changed
[C++ Warning] _epilog.h(32): W8059 Structure packing size has changed
헬프를 찾아보니까 다음과 같은 내용이 나오더군요.
(Command-line option to suppress warning: -w-pck)
This warning message is issued when the structure alignment is different after including a file than it was before including that file.
The intention is to warn you about cases where an include file changes structure packing, but by mistake doesn't restore the original setting at the end. If this is intentional, you can give a #pragma nopackwarning directive at the end of an include file to disable the warning for this file.
The warning can be disabled altogether by #pragma warn -pck.
그래서 프로젝트 옵션에서 Warning 레벨을 selected로 하고 -wpck 를 찾아서
선택을 지워버렸는데도 계속해서 이게 뜹니다.
대충 structure를 packing한 다음 나중에 restore할 때 에러가 날 수도 있다는
얘기인 거 같은데... 제 코드에서 나오는 warning도 아니고 컴파일할 때 쓰는 헤더들에서
나오는 warning이라 당황스럽기도 하고 혹시 헤더 버전이 달라서 그런가 확인해 봤지만
빌더 6의 헤더가 맞았습니다.
그런데 왜 프로젝트 옵션에서 이 warning이 안뜨게 했을 때도 계속 해서 뜨는 걸까요?
다시 깔아야 하나...
|