Commit d592f665 authored by Olivier Bertrand's avatar Olivier Bertrand

- Remove gcc warning on variable n set but not used

modified:
  storage/connect/odbconn.cpp
parent c144cf38
...@@ -2373,8 +2373,6 @@ int ODBConn::GetCatInfo(CATPARM *cap) ...@@ -2373,8 +2373,6 @@ int ODBConn::GetCatInfo(CATPARM *cap)
/***********************************************************************/ /***********************************************************************/
PQRYRES ODBConn::AllocateResult(PGLOBAL g) PQRYRES ODBConn::AllocateResult(PGLOBAL g)
{ {
//char *fmt, v;
int n;
bool uns; bool uns;
PODBCCOL colp; PODBCCOL colp;
PCOLRES *pcrp, crp; PCOLRES *pcrp, crp;
...@@ -2401,8 +2399,8 @@ PQRYRES ODBConn::AllocateResult(PGLOBAL g) ...@@ -2401,8 +2399,8 @@ PQRYRES ODBConn::AllocateResult(PGLOBAL g)
qrp->Nblin = 0; qrp->Nblin = 0;
qrp->Cursor = 0; qrp->Cursor = 0;
for (n = 1, colp = (PODBCCOL)m_Tdb->Columns; colp; for (colp = (PODBCCOL)m_Tdb->Columns; colp;
colp = (PODBCCOL)colp->GetNext()) colp = (PODBCCOL)colp->GetNext())
if (!colp->IsSpecial()) { if (!colp->IsSpecial()) {
*pcrp = (PCOLRES)PlugSubAlloc(g, NULL, sizeof(COLRES)); *pcrp = (PCOLRES)PlugSubAlloc(g, NULL, sizeof(COLRES));
crp = *pcrp; crp = *pcrp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment