ORACLE PROC 관련 컴파일 워닝
오라클 설치시 따라오는 샘플을 proc로 precompile 한뒤에
gcc로 컴파일시 -Wall 옵션을 주면 다음과 같은 워닝이 나옵니다.
이걸 없애는 방법은 없나요?
===========================================
sample1.c:118: warning: type defaults to `int' in declaration of `sqlcxt'
sample1.c:120: warning: type defaults to `int' in declaration of `sqlcx2t'
sample1.c:121: warning: type defaults to `int' in declaration of `sqlbuft'
sample1.c:122: warning: type defaults to `int' in declaration of `sqlgs2t'
sample1.c:123: warning: type defaults to `int' in declaration of `sqlorat'
sample1.c: At top level:
sample1.c:241: warning: return type of `main' is not `int'
sample1.c:114: warning: `sqlstm' defined but not used
sample1.c:126: warning: `IAPSUCC' defined but not used
sample1.c:127: warning: `IAPFAIL' defined but not used
sample1.c:128: warning: `IAPFTL' defined but not used
Re: ORACLE PROC 관련 컴파일 워닝
warning 은 warning 일뿐입니다.
작동에 큰 문제가 없다면..그냥 쓰셔도 될듯..
http://redage.net
헉...
작동에는 아직까지 큰 문제는 없는데요.
컴파일 할때 보기가 안좋은게 한 이유구요.
또, 나름대로 sqlcxt ... 등등을 여러군데서 찾아봤는데, 안보이더라구요.
혹시나 빠뜨린게 있지 않을까 해서요.
다 없어지지는 않습니다만..
compile 시에 CODE=ANSI 를 추가하시면...
sample1.c:114: warning: `sqlstm' defined but not used
요놈만 남고 다 없어집니다.
댓글 달기