Commit 58d79686 authored by unknown's avatar unknown
Browse files

removed compiler warnings

parent 3234eb56
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ static
void print(const Uint32 src[], Uint32 len, Uint32 pos = 0)
{
  printf("b'");
  for(int i = 0; i<len; i++)
  for(unsigned i = 0; i<len; i++)
  {
    if(BitmaskImpl::get((pos + len + 31) >> 5, src, i+pos))
      printf("1");
+1 −1
Original line number Diff line number Diff line
@@ -4350,7 +4350,7 @@ Dbdict::execTAB_COMMITCONF(Signal* signal){
      }
      tAttr = aRec->nextAttrInTable;
    }
    ndbrequire(sz == 2 * tabPtr.p->noOfPrimkey);
    ndbrequire((int)sz == 2 * tabPtr.p->noOfPrimkey);

    LinearSectionPtr lsPtr[3];
    lsPtr[0].p = buf;
+1 −1
Original line number Diff line number Diff line
@@ -262,7 +262,7 @@ Dbtux::readKeyAttrs(const Frag& frag, TreeEnt ent, unsigned start, Data keyData)
      debugOut << endl;
      totalSize += 1 + dataSize;
    }
    ndbassert(totalSize == ret);
    ndbassert((int)totalSize == ret);
  }
#endif
}
+2 −2
Original line number Diff line number Diff line
@@ -314,8 +314,8 @@ ndb_mgm_call(NdbMgmHandle handle, const ParserRow<ParserDummy> *command_reply,
     */
    ndbout << "Error in mgm protocol parser. "
	   << "cmd: '" << cmd
	   << "' status=" << ctx.m_status
	   << ", curr=" << ctx.m_currentToken
	   << "' status=" << (Uint32)ctx.m_status
	   << ", curr=" << (Uint32)ctx.m_currentToken
	   << endl;
    DBUG_PRINT("info",("parser.parse returned NULL"));
  } 
+2 −2
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ NdbTransaction* Ndb::doConnect(Uint32 tConNode)
{
  Uint32        tNode;
  Uint32        tAnyAlive = 0;
  int TretCode;
  int TretCode= 0;

  if (tConNode != 0) {
    TretCode = NDB_connect(tConNode);
@@ -892,7 +892,7 @@ Ndb::opTupleIdOnNdb(Uint32 aTableId, Uint64 opValue, Uint32 op)
  DBUG_PRINT("enter", ("table=%u value=%llu op=%u", aTableId, opValue, op));

  NdbTransaction*     tConnection;
  NdbOperation*      tOperation;
  NdbOperation*      tOperation= 0; // Compiler warning if not initialized
  Uint64             tValue;
  NdbRecAttr*        tRecAttrResult;
  int                result;
Loading