mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-27 11:06:53 +01:00
Fix warnings in clang for C++11
This commit is contained in:
@@ -21,6 +21,12 @@
|
||||
#include <sstream>
|
||||
#include <algorithm>
|
||||
|
||||
#ifdef __clang__
|
||||
RAPIDJSON_DIAG_PUSH
|
||||
RAPIDJSON_DIAG_OFF(c++98-compat)
|
||||
RAPIDJSON_DIAG_OFF(missing-variable-declarations)
|
||||
#endif
|
||||
|
||||
using namespace rapidjson;
|
||||
|
||||
template <typename DocumentType>
|
||||
@@ -573,3 +579,7 @@ TYPED_TEST(DocumentMove, MoveAssignmentStack) {
|
||||
// Document d2;
|
||||
// d1 = d2;
|
||||
//}
|
||||
|
||||
#ifdef __clang__
|
||||
RAPIDJSON_DIAG_POP
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user