X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0ca1291c2f63ca6235f4b4885c48413a900aade4..e716b5b6eb47bcdd09c22747a617a7f68e65a645:/examples/msg/properties/msg_prop.c diff --git a/examples/msg/properties/msg_prop.c b/examples/msg/properties/msg_prop.c index cf65df3092..5b36d02b2b 100644 --- a/examples/msg/properties/msg_prop.c +++ b/examples/msg/properties/msg_prop.c @@ -50,7 +50,7 @@ int alice(int argc, char *argv[]) XBT_INFO(" Property: %s old value: %s", exist, value); XBT_INFO("== Trying to modify a host property"); - xbt_dict_set(props, exist, xbt_strdup("250"), xbt_free_f); + xbt_dict_set(props, exist, xbt_strdup("250"), NULL); /* Test if we have changed the value */ value = MSG_host_get_property_value(host1, exist); @@ -70,7 +70,7 @@ int bob(int argc, char *argv[]) xbt_dict_cursor_t cursor = NULL; char *key, *data; const char *noexist = "UnknownProcessProp"; - const char *value; + _XBT_GNUC_UNUSED const char *value; XBT_INFO("== Print the properties of the process"); xbt_dict_foreach(props, cursor, key, data)