summaryrefslogtreecommitdiff
path: root/src/diagnostics.hpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-08-05 20:16:29 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-08-05 20:16:29 -0700
commit7ec146c05489f43dddb1b7af948a193c1cf0a9d1 (patch)
tree00d96dfb5723168550ee9ad2ec4a1797cd7a75ce /src/diagnostics.hpp
parenta7f64f0b39cb7141f16608c171b20bee452fd024 (diff)
downloadtmwa-7ec146c05489f43dddb1b7af948a193c1cf0a9d1.tar.gz
tmwa-7ec146c05489f43dddb1b7af948a193c1cf0a9d1.tar.bz2
tmwa-7ec146c05489f43dddb1b7af948a193c1cf0a9d1.tar.xz
tmwa-7ec146c05489f43dddb1b7af948a193c1cf0a9d1.zip
Work around a compiler bug in error checks
Diffstat (limited to 'src/diagnostics.hpp')
-rw-r--r--src/diagnostics.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/diagnostics.hpp b/src/diagnostics.hpp
index 31596dc..dab15b5 100644
--- a/src/diagnostics.hpp
+++ b/src/diagnostics.hpp
@@ -52,6 +52,7 @@ namespace tmwa
# define CLANG (0)
# endif
#endif
+#define GCC_PATCH (GCC * 100 + __GNUC_PATCHLEVEL__)
#if GCC >= 406 || CLANG
# define PRAGMA(x) _Pragma(#x) static_assert(1, "I like my semicolons")