From: mquinson Date: Thu, 8 Sep 2005 21:26:35 +0000 (+0000) Subject: This data is used within the TRY/CATCH block; mark it volatile to avoid issues on... X-Git-Tag: v3.3~3648 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/033b77c0b95ef47b1afc1b2256634ac02bc5d1ab This data is used within the TRY/CATCH block; mark it volatile to avoid issues on non-x86 git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1709 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/gras/Msg/msg.c b/src/gras/Msg/msg.c index ea783f1bfe..d6cc3a401d 100644 --- a/src/gras/Msg/msg.c +++ b/src/gras/Msg/msg.c @@ -140,7 +140,7 @@ gras_msgtype_declare_v(const char *name, gras_msgtype_t msgtype=NULL; char *namev=make_namev(name,version); - int found = 0; + volatile int found = 0; xbt_ex_t e; TRY { diff --git a/src/gras/Virtu/process.c b/src/gras/Virtu/process.c index 462c34edf2..7a22286304 100644 --- a/src/gras/Virtu/process.c +++ b/src/gras/Virtu/process.c @@ -96,7 +96,7 @@ gras_procdata_init() { pd->libdata = xbt_dict_new(); xbt_dynar_foreach(_gras_procdata_fabrics,cursor,fab){ - int found = 0; + volatile int found = 0; xbt_assert1(fab.name,"Name of fabric #%d is NULL!",cursor); DEBUG1("Create the procdata for %s",fab.name); @@ -106,6 +106,7 @@ gras_procdata_init() { found = 1; } CATCH(e) { xbt_ex_free(e); + found = 0; } if (found) THROW1(unknown_error,0,"MayDay: two modules use '%s' as libdata name", fab.name);