Skip to Main Content

DevOps, CI/CD and Automation

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!

PROC: warnings from CC compiler when compiling a .pc to .c file

977242Nov 30 2012 — edited Dec 3 2012
Dears,

I'm getting unexpected warnings from CC compiler while compiling a C file generated from a PROC file.

Below is the list of warnings (there are only 2 warnings appearing multiple times) that I'm encountering:

line 43: Warning: Partially bracketed initialization for sqladt.
line 57: Warning: Partially bracketed initialization for sqltds.
line 114: Warning: Partially bracketed initialization for sqlstm.
line 601: Warning: sqlstm hides the same name in an outer scope.
line 674: Warning: sqlstm hides the same name in an outer scope.
line 755: Warning: sqlstm hides the same name in an outer scope.
line 818: Warning: sqlstm hides the same name in an outer scope.
line 849: Warning: sqlstm hides the same name in an outer scope.
line 957: Warning: sqlstm hides the same name in an outer scope.
line 1004: Warning: sqlstm hides the same name in an outer scope.
line 1076: Warning: sqlstm hides the same name in an outer scope.
line 1124: Warning: sqlstm hides the same name in an outer scope.
line 1199: Warning: sqlstm hides the same name in an outer scope.

Please find below the details of the precompiler & compiler that I'm using:
PROC version:
Pro*C/C++: Release 10.2.0.4.0

CC version:
CC: Sun C++ 5.8 Patch 121017-01 2005/12/11

I'm using the following Oracle flags in the Makefile:
SQLCHECK=FULL \
USERID=$(ORACLE_PROCUSR) \
CODE=CPP \
MODE=ORACLE

Please let me know why I'm getting these warnings & will they pose any problem while executing the binary under any special circumstances (like core dump).

Also please let me know if you need anymore information.

Any help is greatly appreciated.

Thanks in advance.

Regards,
Supreeth
This post has been answered by Steve.Clamage-Oracle on Nov 30 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 31 2012
Added on Nov 30 2012
3 comments
1,136 views