Skip to content

Commit

Permalink
- Remove gcc warning on variable n set but not used
Browse files Browse the repository at this point in the history
modified:
  storage/connect/odbconn.cpp
  • Loading branch information
Buggynours committed Nov 20, 2014
1 parent c144cf3 commit d592f66
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions storage/connect/odbconn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2373,8 +2373,6 @@ int ODBConn::GetCatInfo(CATPARM *cap)
/***********************************************************************/
PQRYRES ODBConn::AllocateResult(PGLOBAL g)
{
//char *fmt, v;
int n;
bool uns;
PODBCCOL colp;
PCOLRES *pcrp, crp;
Expand All @@ -2401,8 +2399,8 @@ PQRYRES ODBConn::AllocateResult(PGLOBAL g)
qrp->Nblin = 0;
qrp->Cursor = 0;

for (n = 1, colp = (PODBCCOL)m_Tdb->Columns; colp;
colp = (PODBCCOL)colp->GetNext())
for (colp = (PODBCCOL)m_Tdb->Columns; colp;
colp = (PODBCCOL)colp->GetNext())
if (!colp->IsSpecial()) {
*pcrp = (PCOLRES)PlugSubAlloc(g, NULL, sizeof(COLRES));
crp = *pcrp;
Expand Down

0 comments on commit d592f66

Please sign in to comment.