A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add some _XBT_GNUC_UNUSED to avoid compilation warnings with NDEBUG
[simgrid.git]
/
examples
/
gras
/
properties
/
properties.c
diff --git
a/examples/gras/properties/properties.c
b/examples/gras/properties/properties.c
index
358df12
..
b0ae355
100644
(file)
--- a/
examples/gras/properties/properties.c
+++ b/
examples/gras/properties/properties.c
@@
-21,7
+21,7
@@
int alice(int argc, char *argv[])
xbt_dict_cursor_t cursor = NULL;
char *key, *data;
xbt_dict_cursor_t cursor = NULL;
char *key, *data;
- const char *value;
+
_XBT_GNUC_UNUSED
const char *value;
/* Let the other process change the host props */
gras_os_sleep(1);
/* Let the other process change the host props */
gras_os_sleep(1);
@@
-64,7
+64,7
@@
int bob(int argc, char *argv[])
xbt_dict_t host_props = gras_os_host_properties();
xbt_dict_cursor_t cursor = NULL;
char *key, *data;
xbt_dict_t host_props = gras_os_host_properties();
xbt_dict_cursor_t cursor = NULL;
char *key, *data;
- const char *value;
+
_XBT_GNUC_UNUSED
const char *value;
XBT_INFO("== Dump all the properties of host1");
xbt_dict_foreach(host_props, cursor, key, data)
XBT_INFO("== Dump all the properties of host1");
xbt_dict_foreach(host_props, cursor, key, data)