Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Get ride of a supurious compiler warning
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 20 May 2008 12:52:06 +0000 (12:52 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 20 May 2008 12:52:06 +0000 (12:52 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5447 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/cpu.c
src/surf/network.c
src/surf/workstation_ptask_L07.c

index 4a3353a..facbf7e 100644 (file)
@@ -253,7 +253,7 @@ static void update_resource_state(void *id,
 
       cpu->state_current = SURF_CPU_OFF;
 
-      while(var = lmm_get_var_from_cnst(cpu_maxmin_system,cnst,&elem)) {
+      while((var = lmm_get_var_from_cnst(cpu_maxmin_system,cnst,&elem))) {
        surf_action_t action = lmm_variable_id(var) ;
 
        if(surf_action_get_state(action)==SURF_ACTION_RUNNING ||
index 14c6c2c..1077cdb 100644 (file)
@@ -476,8 +476,8 @@ static void update_resource_state(void *id,
     surf_action_network_CM02_t action = NULL;
 
     nw_link->lat_current = value;
-    while (var= lmm_get_var_from_cnst
-          (network_maxmin_system, nw_link->constraint, &elem)) {
+    while ((var= lmm_get_var_from_cnst
+          (network_maxmin_system, nw_link->constraint, &elem))) {
       action = lmm_variable_id(var);
       action->lat_current += delta;
       if (action->rate < 0)
index cb8022d..b66945f 100644 (file)
@@ -378,8 +378,8 @@ static void update_resource_state(void *id,
       lmm_element_t elem = NULL;
 
       nw_link->lat_current = value;
-      while (var = lmm_get_var_from_cnst
-            (ptask_maxmin_system, nw_link->constraint, &elem)) {
+      while ((var = lmm_get_var_from_cnst
+            (ptask_maxmin_system, nw_link->constraint, &elem))) {
        
 
        action = lmm_variable_id(var);