Commit f422094b authored by Milo Yip's avatar Milo Yip

Fix the last warning fix

parent 5f819ea1
...@@ -17,11 +17,6 @@ ...@@ -17,11 +17,6 @@
#include "rapidjson.h" #include "rapidjson.h"
#ifdef __GNUC__
RAPIDJSON_DIAG_PUSH
RAPIDJSON_DIAG_OFF(effc++)
#endif
RAPIDJSON_NAMESPACE_BEGIN RAPIDJSON_NAMESPACE_BEGIN
// encodings.h // encodings.h
...@@ -148,8 +143,4 @@ typedef GenericSchemaValidator<SchemaDocument, BaseReaderHandler<UTF8<char>, voi ...@@ -148,8 +143,4 @@ typedef GenericSchemaValidator<SchemaDocument, BaseReaderHandler<UTF8<char>, voi
RAPIDJSON_NAMESPACE_END RAPIDJSON_NAMESPACE_END
#ifdef __GNUC__
RAPIDJSON_DIAG_POP
#endif
#endif // RAPIDJSON_RAPIDJSONFWD_H_ #endif // RAPIDJSON_RAPIDJSONFWD_H_
...@@ -14,6 +14,11 @@ ...@@ -14,6 +14,11 @@
#include "unittest.h" #include "unittest.h"
#ifdef __GNUC__
RAPIDJSON_DIAG_PUSH
RAPIDJSON_DIAG_OFF(effc++)
#endif
// Using forward declared types here. // Using forward declared types here.
#include "rapidjson/fwd.h" #include "rapidjson/fwd.h"
...@@ -206,3 +211,7 @@ Foo::~Foo() { ...@@ -206,3 +211,7 @@ Foo::~Foo() {
TEST(Fwd, Fwd) { TEST(Fwd, Fwd) {
Foo f; Foo f;
} }
#ifdef __GNUC__
RAPIDJSON_DIAG_POP
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment