summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--socket.c4
-rw-r--r--stream.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/socket.c b/socket.c
index fe0c4a83..564db0ef 100644
--- a/socket.c
+++ b/socket.c
@@ -408,7 +408,7 @@ static int dgram_get_byte_callback(mem_t *ctx)
} else {
const int dgram_size = d->rx_max;
mem_t *dgram = chk_malloc(dgram_size);
- ssize_t nbytes = -1;
+ volatile ssize_t nbytes = -1;
uw_simple_catch_begin;
@@ -895,7 +895,7 @@ static val sock_accept(val sock, val mode_str, val timeout_in)
if (type == num_fast(SOCK_DGRAM)) {
struct dgram_stream *d = coerce(struct dgram_stream *, sock->co.handle);
- ssize_t nbytes = -1;
+ volatile ssize_t nbytes = -1;
const int dgram_size = d->rx_max;
mem_t *dgram = chk_malloc(dgram_size);
diff --git a/stream.c b/stream.c
index 3282b7f6..55b501c1 100644
--- a/stream.c
+++ b/stream.c
@@ -691,7 +691,7 @@ val generic_get_line(val stream)
const size_t min_size = 512;
size_t size = 0;
size_t fill = 0;
- wchar_t *buf = 0;
+ wchar_t *volatile buf = 0;
val out = nil;
uw_simple_catch_begin;
@@ -3650,9 +3650,9 @@ val open_tail(val path, val mode_str, val seek_end_p)
}
struct save_fds {
- int in;
- int out;
- int err;
+ volatile int in;
+ volatile int out;
+ volatile int err;
};
#define FDS_IN 1