[llvm-commits] [polly] r149239 - /polly/trunk/lib/JSON/json_value.cpp
Tobias Grosser
grosser at fim.uni-passau.de
Mon Jan 30 01:07:45 PST 2012
Author: grosser
Date: Mon Jan 30 03:07:45 2012
New Revision: 149239
URL: http://llvm.org/viewvc/llvm-project?rev=149239&view=rev
Log:
Disable some clang warnings in imported JSON code.
Modified:
polly/trunk/lib/JSON/json_value.cpp
Modified: polly/trunk/lib/JSON/json_value.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/JSON/json_value.cpp?rev=149239&r1=149238&r2=149239&view=diff
==============================================================================
--- polly/trunk/lib/JSON/json_value.cpp (original)
+++ polly/trunk/lib/JSON/json_value.cpp Mon Jan 30 03:07:45 2012
@@ -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.
More information about the llvm-commits
mailing list