summaryrefslogtreecommitdiffstats
path: root/polly/lib/JSON/json_value.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'polly/lib/JSON/json_value.cpp')
-rw-r--r--polly/lib/JSON/json_value.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/polly/lib/JSON/json_value.cpp b/polly/lib/JSON/json_value.cpp
index 34acce947ce..04e96ea507d 100644
--- a/polly/lib/JSON/json_value.cpp
+++ b/polly/lib/JSON/json_value.cpp
@@ -13,6 +13,10 @@
# include "json_batchallocator.h"
#endif // #ifndef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR
+// Disable warnings. We do not fix these warnings, as this is a file imported
+// into Polly and we do not want to diverge from the original source.
+#pragma clang diagnostic ignored "-Wcovered-switch-default"
+
#define JSON_ASSERT_UNREACHABLE assert( false )
#define JSON_ASSERT( condition ) assert( condition ); // @todo <= change this into an exception throw
// Do not use throw when exception is disable.
OpenPOWER on IntegriCloud