summaryrefslogtreecommitdiff
path: root/ndb/src/ndbapi
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2004-10-22 16:21:51 +0000
committerunknown <tomas@poseidon.ndb.mysql.com>2004-10-22 16:21:51 +0000
commit236e588a73589dea135568f00601586107286865 (patch)
tree8726e9ff88cce4368528297b233f4bd1748ceadb /ndb/src/ndbapi
parentf74303af57130ef84cfb796de058db3e10a868e9 (diff)
downloadmariadb-git-236e588a73589dea135568f00601586107286865.tar.gz
removing compiler warnings
Diffstat (limited to 'ndb/src/ndbapi')
-rw-r--r--ndb/src/ndbapi/NdbConnection.cpp4
-rw-r--r--ndb/src/ndbapi/NdbScanOperation.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/ndb/src/ndbapi/NdbConnection.cpp b/ndb/src/ndbapi/NdbConnection.cpp
index c142efb1596..1457792cf28 100644
--- a/ndb/src/ndbapi/NdbConnection.cpp
+++ b/ndb/src/ndbapi/NdbConnection.cpp
@@ -313,8 +313,8 @@ NdbConnection::execute(ExecType aTypeOfExec,
tPrepOp = tPrepOp->next();
}
// save rest of prepared ops if batch
- NdbOperation* tRestOp;
- NdbOperation* tLastOp;
+ NdbOperation* tRestOp= 0;
+ NdbOperation* tLastOp= 0;
if (tPrepOp != NULL) {
tRestOp = tPrepOp->next();
tPrepOp->next(NULL);
diff --git a/ndb/src/ndbapi/NdbScanOperation.cpp b/ndb/src/ndbapi/NdbScanOperation.cpp
index b23bc8cfe4d..fd63ce96f25 100644
--- a/ndb/src/ndbapi/NdbScanOperation.cpp
+++ b/ndb/src/ndbapi/NdbScanOperation.cpp
@@ -1182,7 +1182,7 @@ NdbIndexScanOperation::insertBOUNDS(Uint32 * data, Uint32 sz){
len = (KeyInfo::DataLength - remaining) + len;
break;
}
- } while(sz >= 0);
+ } while(true);
theTotalNrOfKeyWordInSignal = len;
return 0;