Fix the last warning fix

This commit is contained in:
Milo Yip 2016-02-02 18:36:27 +08:00
parent 5f819ea1d3
commit f422094b9f
2 changed files with 9 additions and 9 deletions

View File

@ -17,11 +17,6 @@
#include "rapidjson.h"
#ifdef __GNUC__
RAPIDJSON_DIAG_PUSH
RAPIDJSON_DIAG_OFF(effc++)
#endif
RAPIDJSON_NAMESPACE_BEGIN
// encodings.h
@ -148,8 +143,4 @@ typedef GenericSchemaValidator<SchemaDocument, BaseReaderHandler<UTF8<char>, voi
RAPIDJSON_NAMESPACE_END
#ifdef __GNUC__
RAPIDJSON_DIAG_POP
#endif
#endif // RAPIDJSON_RAPIDJSONFWD_H_

View File

@ -14,6 +14,11 @@
#include "unittest.h"
#ifdef __GNUC__
RAPIDJSON_DIAG_PUSH
RAPIDJSON_DIAG_OFF(effc++)
#endif
// Using forward declared types here.
#include "rapidjson/fwd.h"
@ -206,3 +211,7 @@ Foo::~Foo() {
TEST(Fwd, Fwd) {
Foo f;
}
#ifdef __GNUC__
RAPIDJSON_DIAG_POP
#endif