From 862a745f0700f97205f3b67efe2c3cd9a64da74f Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 2 Oct 2012 11:30:46 +0200 Subject: [PATCH] =?utf8?q?Mark=20as=20volatile=20variables=20that=20"might?= =?utf8?q?=20be=20clobbered=20by=20=E2=80=98longjmp=E2=80=99=20or=20?= =?utf8?q?=E2=80=98vfork=E2=80=99".?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/amok/Bandwidth/bandwidth.c | 4 ++-- src/gras/Transport/transport.c | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/amok/Bandwidth/bandwidth.c b/src/amok/Bandwidth/bandwidth.c index d5fb44130b..05ebc4ede4 100644 --- a/src/amok/Bandwidth/bandwidth.c +++ b/src/amok/Bandwidth/bandwidth.c @@ -293,8 +293,8 @@ int amok_bw_cb_bw_handshake(gras_msg_cb_ctx_t ctx, void *payload) volatile bw_request_t request = *(bw_request_t *) payload; bw_request_t answer; xbt_ex_t e; - int port; - int tooshort = 1; + volatile int port; + volatile int tooshort = 1; gras_msg_cb_ctx_t ctx_reask; static xbt_dynar_t msgtwaited = NULL; diff --git a/src/gras/Transport/transport.c b/src/gras/Transport/transport.c index ce6a7e57ae..1c869660ac 100644 --- a/src/gras/Transport/transport.c +++ b/src/gras/Transport/transport.c @@ -85,8 +85,7 @@ xbt_socket_t gras_socket_server_range(unsigned short minport, unsigned short maxport, unsigned long int buf_size, int measurement) { - - int port; + volatile int port; xbt_socket_t res = NULL; xbt_ex_t e; -- 2.20.1