@@ -870,7 +870,6 @@ void _createGroup(CkGroupID groupID, envelope *env)
870870 _CHECK_USED (env );
871871 _SET_USED (env , 1 );
872872 int epIdx = env -> getEpIdx ();
873- int gIdx = _entryTable [epIdx ]-> chareIdx ;
874873 env -> setGroupNum (groupID );
875874 env -> setSrcPe (CkMyPe ());
876875 env -> setGroupEpoch (CkpvAccess (_charmEpoch ));
@@ -1175,10 +1174,6 @@ IrrGroup *lookupGroupAndBufferIfNotThere(CkCoreState *ck,envelope *env,const CkG
11751174
11761175static inline void _deliverForBocMsg (CkCoreState * ck ,int epIdx ,envelope * env ,IrrGroup * obj )
11771176{
1178- #if CMK_SMP
1179- unsigned short int msgType = CMI_ZC_MSGTYPE (env ); // store msgType as msg could be freed
1180- #endif
1181-
11821177 _invokeEntry (epIdx ,env ,obj );
11831178
11841179 _STATS_RECORD_PROCESS_BRANCH_1 ();
@@ -1188,7 +1183,6 @@ static inline void _processForBocMsg(CkCoreState *ck,envelope *env)
11881183{
11891184 if (isGroupDepUnsatisfied (ck , env ))
11901185 return ;
1191- CkGroupID groupID = env -> getGroupNum ();
11921186 IrrGroup * obj = _lookupGroupAndBufferIfNotThere (ck ,env ,env -> getGroupNum ());
11931187 if (obj ) {
11941188 ck -> process (); // ck->process() updates mProcessed count used in QD
@@ -1279,7 +1273,6 @@ static void _processArrayEltMsg(CkCoreState *ck,envelope *env) {
12791273 // First see if we already have a direct pointer to the object
12801274 _SET_USED (env , 0 );
12811275 ck -> process (); // ck->process() updates mProcessed count used in QD
1282- int opts = 0 ;
12831276 if (msg -> array_hops ()> 1 ) {
12841277 CProxy_ArrayBase (env -> getArrayMgr ()).ckLocMgr ()-> multiHop (msg );
12851278 }
@@ -1813,7 +1806,7 @@ static inline envelope *_prepareImmediateMsgBranch(int eIdx,void *msg,CkGroupID
18131806static inline void _sendMsgBranch (int eIdx , void * msg , CkGroupID gID ,
18141807 int pe = CLD_BROADCAST_ALL , int opts = 0 )
18151808{
1816- int numPes ;
1809+ int numPes = 1 ;
18171810 envelope * env ;
18181811 if (opts & CK_MSG_IMMEDIATE ) {
18191812 env = _prepareImmediateMsgBranch (eIdx ,msg ,gID ,ForBocMsg );
@@ -1879,7 +1872,7 @@ void CkSendMsgBranchImmediate(int eIdx, void *msg, int destPE, CkGroupID gID)
18791872 }
18801873 //Can't inline-- send the usual way
18811874 envelope * env = UsrToEnv (msg );
1882- int numPes ;
1875+ int numPes = 1 ;
18831876 _TRACE_ONLY (numPes = (destPE == CLD_BROADCAST_ALL ?CkNumPes ():1 ));
18841877 env = _prepareImmediateMsgBranch (eIdx ,msg ,gID ,ForBocMsg );
18851878 _TRACE_CREATION_N (env , numPes );
@@ -2034,7 +2027,7 @@ void CkSendMsgNodeBranchImmediate(int eIdx, void *msg, int node, CkGroupID gID)
20342027 }
20352028 //Can't inline-- send the usual way
20362029 envelope * env = UsrToEnv (msg );
2037- int numPes ;
2030+ int numPes = 1 ;
20382031 _TRACE_ONLY (numPes = (node == CLD_BROADCAST_ALL ?CkNumNodes ():1 ));
20392032 env = _prepareImmediateMsgBranch (eIdx ,msg ,gID ,ForNodeBocMsg );
20402033 _TRACE_CREATION_N (env , numPes );
@@ -2164,10 +2157,8 @@ void CkArrayManagerDeliver(int pe,void *msg, int opts) {
21642157}
21652158
21662159class ElementDestroyer : public CkLocIterator {
2167- private :
2168- CkLocMgr * locMgr ;
21692160public :
2170- ElementDestroyer (CkLocMgr * mgr_ ): locMgr ( mgr_ ){};
2161+ ElementDestroyer (CkLocMgr * mgr_ ){}
21712162 void addLocation (CkLocation & loc ) {
21722163 loc .destroyAll ();
21732164 }
0 commit comments