a fix for VC++ compiler error
authorGengbin Zheng <gzheng@illinois.edu>
Mon, 17 Oct 2011 00:03:31 +0000 (19:03 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Mon, 17 Oct 2011 00:03:31 +0000 (19:03 -0500)
src/arch/mpi/machine.c

index b42e2acbaed3d9d6f31b18ad5d0a0ce78b6380eb..c3b632933486ae153d82aa0bc7e187d41c61e9d7 100644 (file)
@@ -1207,6 +1207,8 @@ static void MachinePreCommonInitForMPI(int everReturn) {
 
 static void MachinePostCommonInitForMPI(int everReturn) {
 
+    CmiIdleState *s=CmiNotifyGetState();
+
     CpvInitialize(SMSG_LIST *, sent_msgs);
     CpvInitialize(SMSG_LIST *, end_sent);
     CpvInitialize(int, MsgQueueLen);
@@ -1214,7 +1216,6 @@ static void MachinePostCommonInitForMPI(int everReturn) {
     CpvAccess(end_sent) = NULL;
     CpvAccess(MsgQueueLen) = 0;
 
-    CmiIdleState *s=CmiNotifyGetState();
     machine_exit_idx = CmiRegisterHandler((CmiHandler)machine_exit);
 
 #if CMI_MPI_TRACE_USEREVENTS && CMK_TRACE_ENABLED && !CMK_TRACE_IN_CHARM