|
XE4 도 마찬가지로 Full parser context 경고 메세지가 나오는데요
W8004 'hProcTray' is assigned a value that is never used
식으로 하나면 보여주면 될것을, 그런 메세지도 출력하는 것은 불필요해 보이네요.
그런 불필요한 메세지가 출력되는 것을 막으려면
사용하지 않는 변수는 걷어내고, 값을 리턴해야 하는 함수는 반드시 리턴 코드를 넣고
하는 식으로 경고가 아예 나오지 않게 하는 방법 밖에는 없을 듯.
크레브 님이 쓰신 글 :
: 빌드 할때 다음과 같은 경고들이 나오는데.
: 여기서 W100 경고는 뭘까요?
: 일반적인 경고는 보통 4자리 숫자인데.. 이렇게 나오는것을 보면..
: C++빌더 컴파일러 버그 같기도 하고..
: 전혀 이유를 찾을 수가 없네요.
:
: "xxx.cbproj" 프로젝트를 빌드했습니다.
: 빌드했습니다.
: Common\CommonUtils.cpp(209,1): warning W8004: W8004 'hProcTray' is assigned a value that is never used
: c:\program files (x86)\embarcadero\rad studio\7.0\Bin\CodeGear.Cpp.Targets(-1,-2): warning W0: Full parser context
: Common\CommonUtils.cpp(191,-1): warning W100: parsing: void _fastcall ClearTray()
: Common\CommonUtils.cpp(204,1): warning W8004: W8004 'nCount' is assigned a value that is never used
: c:\program files (x86)\embarcadero\rad studio\7.0\Bin\CodeGear.Cpp.Targets(-1,-2): warning W0: Full parser context
: Common\CommonUtils.cpp(191,-1): warning W100: parsing: void _fastcall ClearTray()
: Common\CommonUtils.cpp(204,1): warning W8004: W8004 'i' is assigned a value that is never used
: c:\program files (x86)\embarcadero\rad studio\7.0\Bin\CodeGear.Cpp.Targets(-1,-2): warning W0: Full parser context
: Common\CommonUtils.cpp(191,-1): warning W100: parsing: void _fastcall ClearTray()
: Common\CommonUtils.cpp(203,1): warning W8004: W8004 'pData' is assigned a value that is never used
: c:\program files (x86)\embarcadero\rad studio\7.0\Bin\CodeGear.Cpp.Targets(-1,-2): warning W0: Full parser context
: Common\CommonUtils.cpp(191,-1): warning W100: parsing: void _fastcall ClearTray()
: 경고 12개
: 오류 0개
: 경과 시간: 00:02:18.07
|