Fix warnings
This commit is contained in:
parent
8cb978dc15
commit
5f819ea1d3
@ -17,6 +17,11 @@
|
|||||||
|
|
||||||
#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
|
||||||
@ -143,4 +148,8 @@ 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_
|
||||||
|
@ -47,11 +47,11 @@ struct Foo {
|
|||||||
// stringbuffer.h
|
// stringbuffer.h
|
||||||
StringBuffer* stringbuffer;
|
StringBuffer* stringbuffer;
|
||||||
|
|
||||||
// filereadstream.h
|
// // filereadstream.h
|
||||||
FileReadStream* filereadstream;
|
// FileReadStream* filereadstream;
|
||||||
|
|
||||||
// filewritestream.h
|
// // filewritestream.h
|
||||||
FileWriteStream* filewritestream;
|
// FileWriteStream* filewritestream;
|
||||||
|
|
||||||
// memorybuffer.h
|
// memorybuffer.h
|
||||||
MemoryBuffer* memorybuffer;
|
MemoryBuffer* memorybuffer;
|
||||||
@ -77,7 +77,7 @@ struct Foo {
|
|||||||
SchemaDocument* schemadocument;
|
SchemaDocument* schemadocument;
|
||||||
SchemaValidator* schemavalidator;
|
SchemaValidator* schemavalidator;
|
||||||
|
|
||||||
char buffer[16];
|
// char buffer[16];
|
||||||
};
|
};
|
||||||
|
|
||||||
// Using type definitions here.
|
// Using type definitions here.
|
||||||
@ -115,11 +115,11 @@ Foo::Foo() :
|
|||||||
// stringbuffer.h
|
// stringbuffer.h
|
||||||
stringbuffer(RAPIDJSON_NEW(StringBuffer)),
|
stringbuffer(RAPIDJSON_NEW(StringBuffer)),
|
||||||
|
|
||||||
// filereadstream.h
|
// // filereadstream.h
|
||||||
filereadstream(RAPIDJSON_NEW(FileReadStream(stdout, buffer, sizeof(buffer)))),
|
// filereadstream(RAPIDJSON_NEW(FileReadStream(stdout, buffer, sizeof(buffer)))),
|
||||||
|
|
||||||
// filewritestream.h
|
// // filewritestream.h
|
||||||
filewritestream(RAPIDJSON_NEW(FileWriteStream(stdout, buffer, sizeof(buffer)))),
|
// filewritestream(RAPIDJSON_NEW(FileWriteStream(stdout, buffer, sizeof(buffer)))),
|
||||||
|
|
||||||
// memorybuffer.h
|
// memorybuffer.h
|
||||||
memorybuffer(RAPIDJSON_NEW(MemoryBuffer)),
|
memorybuffer(RAPIDJSON_NEW(MemoryBuffer)),
|
||||||
@ -172,11 +172,11 @@ Foo::~Foo() {
|
|||||||
// stringbuffer.h
|
// stringbuffer.h
|
||||||
RAPIDJSON_DELETE(stringbuffer);
|
RAPIDJSON_DELETE(stringbuffer);
|
||||||
|
|
||||||
// filereadstream.h
|
// // filereadstream.h
|
||||||
RAPIDJSON_DELETE(filereadstream);
|
// RAPIDJSON_DELETE(filereadstream);
|
||||||
|
|
||||||
// filewritestream.h
|
// // filewritestream.h
|
||||||
RAPIDJSON_DELETE(filewritestream);
|
// RAPIDJSON_DELETE(filewritestream);
|
||||||
|
|
||||||
// memorybuffer.h
|
// memorybuffer.h
|
||||||
RAPIDJSON_DELETE(memorybuffer);
|
RAPIDJSON_DELETE(memorybuffer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user