From 7aa517d7048f2813ede37369d12ff11e1ebefa92 Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Thu, 1 Dec 2011 09:13:01 +0100 Subject: [PATCH 1/1] two more clobbered variables that prevent me to compile. Don't ask Midjy this time. --- examples/gras/all2all/all2all.c | 2 +- src/simix/smx_network.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/gras/all2all/all2all.c b/examples/gras/all2all/all2all.c index db1504b568..8e3b0f434d 100644 --- a/examples/gras/all2all/all2all.c +++ b/examples/gras/all2all/all2all.c @@ -82,7 +82,7 @@ int sender(int argc, char *argv[]) xbt_peer_t h; /* iterator */ int connected = 0; - gras_socket_t peer = NULL; /* socket to node */ + volatile gras_socket_t peer = NULL; /* socket to node */ /* xbt_dynar for peers */ diff --git a/src/simix/smx_network.c b/src/simix/smx_network.c index d4290260d6..6eff1fa5cd 100644 --- a/src/simix/smx_network.c +++ b/src/simix/smx_network.c @@ -554,7 +554,7 @@ XBT_INLINE void SIMIX_comm_start(smx_action_t action) */ void SIMIX_comm_finish(smx_action_t action) { - unsigned int destroy_count = 0; + volatile unsigned int destroy_count = 0; smx_req_t req; while ((req = xbt_fifo_shift(action->request_list))) { -- 2.20.1