diff options
author | Mattias Andrée <maandree@kth.se> | 2018-08-29 17:51:58 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2018-08-29 17:51:58 +0200 |
commit | 951b4d882fa2393369656e05efef3bb229e38c1d (patch) | |
tree | 1630753309c5e0d993345d7a4a41cf45dab1cde8 /libsimple.c | |
parent | Add readme (diff) | |
download | libsimple-951b4d882fa2393369656e05efef3bb229e38c1d.tar.gz libsimple-951b4d882fa2393369656e05efef3bb229e38c1d.tar.bz2 libsimple-951b4d882fa2393369656e05efef3bb229e38c1d.tar.xz |
Circumvent GCC bugs in test code when optimised
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libsimple.c')
-rw-r--r-- | libsimple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsimple.c b/libsimple.c index 58565b5..d6eb2ce 100644 --- a/libsimple.c +++ b/libsimple.c @@ -90,7 +90,7 @@ test_vasprintfa(const char *expected, const char *format, ...) int main(void) { - struct allocinfo *info; + struct allocinfo *volatile info; void *ptr, *ptr2; struct timespec ts, ts1, ts2; struct timeval tv1, tv2; |