summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/debug.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-08-27 01:55:28 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-08-27 02:01:13 +0200
commit6c236b408318b0f8faf631f1beeb2e043393d5e7 (patch)
tree253c3a42451865aba7f27e3795331a6c3a86071b /crawl-ref/source/debug.h
parentc526fa56b77ea77787076b61d41ae6f78ca07166 (diff)
downloadcrawl-ref-6c236b408318b0f8faf631f1beeb2e043393d5e7.tar.gz
crawl-ref-6c236b408318b0f8faf631f1beeb2e043393d5e7.zip
A too-ugly-to-live hack to unbreak compilation on gcc-4.8.
We'd need some way to have a static_assert() without using C++11 that doesn't spam warnings in the no failure case.
Diffstat (limited to 'crawl-ref/source/debug.h')
-rw-r--r--crawl-ref/source/debug.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/debug.h b/crawl-ref/source/debug.h
index 5ffe046a75..9318ecbce7 100644
--- a/crawl-ref/source/debug.h
+++ b/crawl-ref/source/debug.h
@@ -36,6 +36,7 @@
# elif defined(__GNUC__) && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 8)
// Otherwise, use a hack.
# define COMPILE_CHECK(expr) ((void)sizeof(char[1 - 2*!(expr)]))
+# define COMPILE_CHECKS_NEED_FUNCTION
# else
// Or one with a slightly better message, except that GCC-4.8 notices it's
// nonsense and spams warnings on non-failures.