From a1f093465b2e02c5586352398aad3359baf19254 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Mon, 30 Jan 2012 09:07:45 +0000 Subject: [PATCH] Disable some clang warnings in imported JSON code. llvm-svn: 149239 --- polly/lib/JSON/json_value.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/polly/lib/JSON/json_value.cpp b/polly/lib/JSON/json_value.cpp index 34acce947cec..04e96ea507d8 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.