LocMgr: Quiet uninitialized variable warnings in pups
authorPhil Miller <mille121@illinois.edu>
Thu, 22 Aug 2013 04:35:58 +0000 (23:35 -0500)
committerPhil Miller <mille121@illinois.edu>
Thu, 22 Aug 2013 04:35:58 +0000 (23:35 -0500)
src/ck-core/cklocation.C

index e92d748bab0ff2784737acf32a71c3458fb4eaea..8c1e35933b5ea51dcd1de0a9987e8efcf02377e2 100644 (file)
@@ -1100,7 +1100,7 @@ void CkMigratable::pup(PUP::er &p) {
   p(can_reset);
        p(usesAutoMeasure);
 #if CMK_LBDB_ON 
-       int readyMigrate;
+       int readyMigrate = 0;
        if (p.isPacking()) readyMigrate = myRec->isReadyMigrate();
        p|readyMigrate;
        if (p.isUnpacking()) myRec->ReadyMigrate(readyMigrate);
@@ -2164,7 +2164,7 @@ void CkLocMgr::pup(PUP::er &p){
                // _lbdb is the fixed global groupID
                initLB(lbdbID, metalbID);
 #if __FAULT__
-        int count;
+        int count = 0;
         p | count;
         DEBUG(CmiPrintf("[%d] Unpacking Locmgr %d has %d home elements\n",CmiMyPe(),thisgroup.idx,count));
 #if (defined(_FAULT_MLOG_) || defined(_FAULT_CAUSAL_))    
@@ -2172,7 +2172,7 @@ void CkLocMgr::pup(PUP::er &p){
 #endif
         for(int i=0;i<count;i++){
             CkArrayIndex idx;
-            int pe;
+            int pe = 0;
             idx.pup(p);
             p | pe;
   //          CmiPrintf("[%d] idx %s is a home element exisiting on pe %d\n",CmiMyPe(),idx2str(idx),pe);