Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix error: passing argument 3 of ‘xbt_dict_set’ discards ‘const’ qualifier from point...
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 9 Jan 2012 13:42:15 +0000 (14:42 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 10 Jan 2012 12:23:26 +0000 (13:23 +0100)
src/instr/instr_resource_utilization.c

index 3b19236..acf1a4c 100644 (file)
@@ -36,7 +36,7 @@ static void __TRACE_surf_check_variable_set_to_zero(double now,
     container_t container = getContainerByName (resource);
     type_t type = getVariableType (variable, NULL, container->type);
     new_pajeSetVariable (now, container, type, 0);
     container_t container = getContainerByName (resource);
     type_t type = getVariableType (variable, NULL, container->type);
     new_pajeSetVariable (now, container, type, 0);
-    xbt_dict_set(platform_variables, key, "", NULL);
+    xbt_dict_set(platform_variables, key, (char*)"", NULL);
   }
   xbt_free(key);
 }
   }
   xbt_free(key);
 }