diff options
author | Olivier Bertrand <bertrandop@gmail.com> | 2014-11-20 23:18:51 +0100 |
---|---|---|
committer | Olivier Bertrand <bertrandop@gmail.com> | 2014-11-20 23:18:51 +0100 |
commit | b2db891c1971a933104471b72877c90dd71aca53 (patch) | |
tree | a543228e0594b9b26ce664b69c66c7ab5133eac7 /storage/connect/odbconn.cpp | |
parent | c144cf38bd235904f3b4ada2f16327dee7b01d7a (diff) | |
download | mariadb-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.cpp | 6 |
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; |