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...
[simgrid.git] / teshsuite / gras / msg_handle / msg_handle.c
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;