From b2db891c1971a933104471b72877c90dd71aca53 Mon Sep 17 00:00:00 2001 From: Olivier Bertrand Date: Thu, 20 Nov 2014 23:18:51 +0100 Subject: - Remove gcc warning (variable n is set and not used) modified: storage/connect/odbconn.cpp --- storage/connect/odbconn.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'storage/connect/odbconn.cpp') 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; -- cgit v1.2.1