Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Get ride of a supurious compiler warning
[simgrid.git] / src / surf / workstation_ptask_L07.c
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);