aboutsummaryrefslogtreecommitdiffstats
path: root/libsimple.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-08-29 17:51:58 +0200
committerMattias Andrée <maandree@kth.se>2018-08-29 17:51:58 +0200
commit951b4d882fa2393369656e05efef3bb229e38c1d (patch)
tree1630753309c5e0d993345d7a4a41cf45dab1cde8 /libsimple.c
parentAdd readme (diff)
downloadlibsimple-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.c2
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;