diff options
author | unknown <tomas@poseidon.ndb.mysql.com> | 2004-10-22 16:21:51 +0000 |
---|---|---|
committer | unknown <tomas@poseidon.ndb.mysql.com> | 2004-10-22 16:21:51 +0000 |
commit | 236e588a73589dea135568f00601586107286865 (patch) | |
tree | 8726e9ff88cce4368528297b233f4bd1748ceadb /ndb/src/ndbapi | |
parent | f74303af57130ef84cfb796de058db3e10a868e9 (diff) | |
download | mariadb-git-236e588a73589dea135568f00601586107286865.tar.gz |
removing compiler warnings
Diffstat (limited to 'ndb/src/ndbapi')
-rw-r--r-- | ndb/src/ndbapi/NdbConnection.cpp | 4 | ||||
-rw-r--r-- | ndb/src/ndbapi/NdbScanOperation.cpp | 2 |
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; |