From: Frederic Suter Date: Thu, 1 Dec 2011 08:13:01 +0000 (+0100) Subject: two more clobbered variables that prevent me to compile. Don't ask X-Git-Tag: exp_20120216~241^2~24 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/7aa517d7048f2813ede37369d12ff11e1ebefa92?hp=c2ccd67b2a2e9d6870112bc79dcb74b7de40351b two more clobbered variables that prevent me to compile. Don't ask Midjy this time. --- 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))) {