summaryrefslogtreecommitdiff
path: root/src/warnings.hpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-06-25 15:05:58 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-06-25 15:05:58 -0700
commit58498c95c4b0b2ccd3e55ee3e0c5e1b916c4907d (patch)
tree7f8d0525297fdf75f49cf1d9504c8cbdccb4dc59 /src/warnings.hpp
parentc9c81a610d97c95c15f938ecd07ceb71cb0cdfb1 (diff)
downloadtmwa-58498c95c4b0b2ccd3e55ee3e0c5e1b916c4907d.tar.gz
tmwa-58498c95c4b0b2ccd3e55ee3e0c5e1b916c4907d.tar.bz2
tmwa-58498c95c4b0b2ccd3e55ee3e0c5e1b916c4907d.tar.xz
tmwa-58498c95c4b0b2ccd3e55ee3e0c5e1b916c4907d.zip
Silence travis
Diffstat (limited to 'src/warnings.hpp')
-rw-r--r--src/warnings.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/warnings.hpp b/src/warnings.hpp
index 3a81d66..40d214d 100644
--- a/src/warnings.hpp
+++ b/src/warnings.hpp
@@ -213,7 +213,11 @@ EG(-Wclobbered)
E(-Wcomment)
// A fixable difference between c++11 and c++14
+#if (defined(__clang__)) && __has_warning("-Wconstexpr-not-const")
EC(-Wconstexpr-not-const)
+#else
+static_assert('?', "-Wconstexpr-not-const not in this version")
+#endif
/// Warn for implicit type conversions that may
/// change a value