removed compiler warning

This commit is contained in:
tomas@poseidon.ndb.mysql.com 2004-10-25 11:30:33 +00:00
parent fbc245e63c
commit 879d986d99
2 changed files with 5 additions and 2 deletions

View file

@ -172,7 +172,7 @@ Dbtux::execTUX_BOUND_INFO(Signal* signal)
BoundInfo& b = boundInfo[j][attrId];
if (b.type != -1) {
// compare with previous bound
if (b.type != type2 ||
if (b.type != (int)type2 ||
b.size != 2 + dataSize ||
memcmp(&data[b.offset + 2], &data[offset + 2], dataSize << 2) != 0) {
jam();

View file

@ -1656,7 +1656,10 @@ MgmtSrvr::setSignalLoggingMode(int processId, LogMode mode,
logSpec = TestOrd::InputOutputSignals;
break;
default:
assert("Unexpected value, MgmtSrvr::setSignalLoggingMode" == 0);
ndbout_c("Unexpected value %d, MgmtSrvr::setSignalLoggingMode, line %d",
(unsigned)mode, __LINE__);
assert(false);
return -1;
}
NdbApiSignal* signal = getSignal();