summaryrefslogtreecommitdiff
path: root/storage/connect/odbconn.cpp
diff options
context:
space:
mode:
authorOlivier Bertrand <bertrandop@gmail.com>2014-11-20 23:18:51 +0100
committerOlivier Bertrand <bertrandop@gmail.com>2014-11-20 23:18:51 +0100
commitb2db891c1971a933104471b72877c90dd71aca53 (patch)
treea543228e0594b9b26ce664b69c66c7ab5133eac7 /storage/connect/odbconn.cpp
parentc144cf38bd235904f3b4ada2f16327dee7b01d7a (diff)
downloadmariadb-git-b2db891c1971a933104471b72877c90dd71aca53.tar.gz
- Remove gcc warning (variable n is set and not used)
modified: storage/connect/odbconn.cpp
Diffstat (limited to 'storage/connect/odbconn.cpp')
-rw-r--r--storage/connect/odbconn.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/storage/connect/odbconn.cpp b/storage/connect/odbconn.cpp
index 88b9978977a..b68b4648616 100644
--- a/storage/connect/odbconn.cpp
+++ b/storage/connect/odbconn.cpp
@@ -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;
@@ -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;