aboutsummaryrefslogtreecommitdiffstats
path: root/libsimple.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-08-29 18:38:55 +0200
committerMattias Andrée <maandree@kth.se>2018-08-29 18:38:55 +0200
commitc08ceacdbc096a05f520c99e5b7f230212c249bb (patch)
tree9be3c0f2e8898965df3951166f2ed0d58f3d16f2 /libsimple.c
parentFix clang support (diff)
downloadlibsimple-c08ceacdbc096a05f520c99e5b7f230212c249bb.tar.gz
libsimple-c08ceacdbc096a05f520c99e5b7f230212c249bb.tar.bz2
libsimple-c08ceacdbc096a05f520c99e5b7f230212c249bb.tar.xz
Circumvent optimisation bug in clang, and fix bug in have_custom_malloc
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libsimple.c')
-rw-r--r--libsimple.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libsimple.c b/libsimple.c
index d6eb2ce..641748a 100644
--- a/libsimple.c
+++ b/libsimple.c
@@ -87,6 +87,9 @@ test_vasprintfa(const char *expected, const char *format, ...)
}
#endif
+#ifdef __clang__
+__attribute__((optnone))
+#endif
int
main(void)
{