Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Precompiler IAP*-Konstants and gcc warnings

user447000Jul 17 2024

Hi,

we use Pro*C C-sources in an older project. When compiling we get warnings from gcc:

CUR_azdaten.pc.c:129:18: warning: ‘IAPFTL’ defined but not used [-Wunused-const-variable=]
129 | static const int IAPFTL = 535;
| ^~~~~~
CUR_azdaten.pc.c:128:18: warning: ‘IAPFAIL’ defined but not used [-Wunused-const-variable=]
128 | static const int IAPFAIL = 1403;
| ^~~~~~~
CUR_azdaten.pc.c:127:18: warning: ‘IAPSUCC’ defined but not used [-Wunused-const-variable=]
127 | static const int IAPSUCC = 0;
| ^~~~~~~

Is were a way to change code generation in way to get rid of these warnings?
As proc-Option we use:
code=ANSI_C

Best regards
Thomas

Comments
Post Details
Added on Jul 17 2024
1 comment
395 views