summaryrefslogtreecommitdiff
path: root/src/warnings.hpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2015-01-04 20:19:02 -0800
committerBen Longbons <b.r.longbons@gmail.com>2015-01-04 20:23:10 -0800
commit94ec7fbe018d194a96ce915692947296ff2a258b (patch)
tree5ff02477a788b3f926ef627e01379a12b4b65f53 /src/warnings.hpp
parent00da6b5977574a0564169172227d8aab45be188f (diff)
downloadtmwa-94ec7fbe018d194a96ce915692947296ff2a258b.tar.gz
tmwa-94ec7fbe018d194a96ce915692947296ff2a258b.tar.bz2
tmwa-94ec7fbe018d194a96ce915692947296ff2a258b.tar.xz
tmwa-94ec7fbe018d194a96ce915692947296ff2a258b.zip
Fix clang builds
Diffstat (limited to 'src/warnings.hpp')
-rw-r--r--src/warnings.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/warnings.hpp b/src/warnings.hpp
index 9389766..884857f 100644
--- a/src/warnings.hpp
+++ b/src/warnings.hpp
@@ -161,7 +161,10 @@ DIAG_E(trigraphs);
DIAG_E(type_limits);
DIAG_E(undef);
DIAG_E(uninitialized);
+// clang bug, fixed in 3.5
+#ifndef GENERATING_DEPENDENCIES
DIAG_E(unknown_pragmas);
+#endif
DIAG_W(unreachable_code);
DIAG_X(unsafe_loop_optimizations);
DIAG_E(unused_but_set_parameter);