Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
mark as volatile variables that are used within TRY/CATCH blocks, or gcc46 will compl...
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 28 Oct 2011 14:41:26 +0000 (16:41 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 28 Oct 2011 14:41:26 +0000 (16:41 +0200)
src/xbt/dynar.c
teshsuite/gras/msg_handle/msg_handle.c

index b5468e3..87d4aa8 100644 (file)
@@ -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;
 
index 08f00ce..57ada11 100644 (file)
@@ -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;