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!

Oracle 12.2 Pro*C - Visual C++ Warning - Declaration of sqlstm hides global declaration

franquistMar 25 2021 — edited Mar 31 2021

Hello,
Environment:
Win10 64bit
Visual Studio 2015 with update 3
Oracle 12.2 64bit client with Pro*C
The *.cpp file generated from the *.pc file is generating the following warning

struct sqlexd sqlstm; //this causes a C4459 warning

C4459 declaration of slqstm hides global declaration

The cpp file below is automatically generated by the *.pc file.

//generated by pro*c
static struct sqlexd {
param1
param2
...
} sqlstm  {13,2}


int function1 ()
{
  struct sqlexd sqlstm;  //hides global sqlstm from above
  sqlstm.slvsn = 13
  sqlstm.arrsiz = 2
}

I'm not quite sure how to resolve this warning as the *.cpp a auto-generated file
Thanks for the help!

Comments

Post Details

Added on Mar 25 2021
3 comments
412 views