Disable some clang warnings in imported JSON code.

llvm-svn: 149239
This commit is contained in:
Tobias Grosser 2012-01-30 09:07:45 +00:00
parent acdbe81637
commit a1f093465b
1 changed files with 4 additions and 0 deletions

View File

@ -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.