From 3743e1e0f626833d6941a8b04d90f7c836d12dcf Mon Sep 17 00:00:00 2001 From: Olivier Bertrand Date: Tue, 6 May 2014 16:00:48 +0200 Subject: [PATCH] - Fix gcc error and warnings modified: storage/connect/odbconn.cpp storage/connect/xindex.cpp --- storage/connect/odbconn.cpp | 2 +- storage/connect/xindex.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/storage/connect/odbconn.cpp b/storage/connect/odbconn.cpp index d0072987fd0..679e8dc703c 100644 --- a/storage/connect/odbconn.cpp +++ b/storage/connect/odbconn.cpp @@ -2135,7 +2135,7 @@ int ODBConn::GetCatInfo(CATPARM *cap) PSZ fnc = "Unknown"; UWORD n; SWORD ncol, len, tp; - SQLULEN crow; + SQLULEN crow = 0; PQRYRES qrp = cap->Qrp; PCOLRES crp; RETCODE rc = 0; diff --git a/storage/connect/xindex.cpp b/storage/connect/xindex.cpp index 21a06c6e992..fad7495fa82 100755 --- a/storage/connect/xindex.cpp +++ b/storage/connect/xindex.cpp @@ -2301,7 +2301,7 @@ void XFILE::Close(void) #if defined(XMAP) if (Mmp && CloseMemMap(Mmp->memory, Mmp->lenL)) - printf("Error %d closing mapped index\n"); + printf("Error closing mapped index\n"); #endif // XMAP } // end of Close @@ -2468,8 +2468,8 @@ bool XHUGE::Open(PGLOBAL g, char *filename, int id, MODE mode) } // endif Hfile if (trace) - htrc(" rc=%d oflag=%p mode=%d handle=%d fn=%s\n", - rc, oflag, mode, Hfile, filename); + htrc(" oflag=%p mode=%d handle=%d fn=%s\n", + oflag, mode, Hfile, filename); if (mode == MODE_INSERT) { /*******************************************************************/