From: Martin Quinson Date: Fri, 28 Oct 2011 14:41:26 +0000 (+0200) Subject: mark as volatile variables that are used within TRY/CATCH blocks, or gcc46 will compl... X-Git-Tag: exp_20120216~539 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/adb6aa36da9df49588d9e8b91a60244f673bab19?hp=014fb38c9ecb8a27235f32c4cd47de6abe3cb3ef mark as volatile variables that are used within TRY/CATCH blocks, or gcc46 will complain about possible clobbering --- diff --git a/src/xbt/dynar.c b/src/xbt/dynar.c index b5468e3b9f..87d4aa8ac8 100644 --- a/src/xbt/dynar.c +++ b/src/xbt/dynar.c @@ -1324,7 +1324,7 @@ static void pusher_f(void *a) static void poper_f(void *a) { xbt_dynar_t d = (xbt_dynar_t) a; - int i; + volatile int i; int data; xbt_ex_t e; diff --git a/teshsuite/gras/msg_handle/msg_handle.c b/teshsuite/gras/msg_handle/msg_handle.c index 08f00cef69..57ada11e57 100644 --- a/teshsuite/gras/msg_handle/msg_handle.c +++ b/teshsuite/gras/msg_handle/msg_handle.c @@ -25,7 +25,7 @@ static int server_cb_hello_handler(gras_msg_cb_ctx_t ctx, int server(int argc, char *argv[]) { - gras_socket_t me = NULL, pal = NULL; + volatile gras_socket_t me = NULL, pal = NULL; int myport; char *palstr; @@ -116,7 +116,7 @@ int server(int argc, char *argv[]) int client(int argc, char *argv[]) { - gras_socket_t me = NULL, pal = NULL; + volatile gras_socket_t me = NULL, pal = NULL; int myport; char *palstr;