This discussion is archived
3 Replies Latest reply: Dec 3, 2012 2:16 AM by 977242 RSS

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

977242 Newbie
Currently Being Moderated
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

Edited by: 974239 on Nov 30, 2012 4:31 AM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points