C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[69548] Re:W100 warning은 뭘까요?
지나다가 [] 1805 읽음    2013-05-28 13:10
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

+ -

관련 글 리스트
69542 W100 warning은 뭘까요? 크레브 1731 2013/05/28
69548     Re:W100 warning은 뭘까요? 지나다가 1805 2013/05/28
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.