diff options
author | miloyip@gmail.com <miloyip@gmail.com@c5894555-1306-4e8d-425f-1f6f381ee07c> | 2012-11-13 12:02:22 +0400 |
---|---|---|
committer | miloyip@gmail.com <miloyip@gmail.com@c5894555-1306-4e8d-425f-1f6f381ee07c> | 2012-11-13 12:02:22 +0400 |
commit | 9c68ce986e8212688b95e14d338affcb0cac5e19 (patch) | |
tree | 6ae5788c72451e128d77151893468f07cd75dcdf /include/rapidjson/prettywriter.h | |
parent | 821c6ab73cf389f69d226150717094049c75223a (diff) |
Fixed a lots of vc2008/vs2010 and gcc3/4 warnings with the maximum warning level.
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@67 c5894555-1306-4e8d-425f-1f6f381ee07c
Diffstat (limited to 'include/rapidjson/prettywriter.h')
-rw-r--r-- | include/rapidjson/prettywriter.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/rapidjson/prettywriter.h b/include/rapidjson/prettywriter.h index 3f3e4cda..2a0a505f 100644 --- a/include/rapidjson/prettywriter.h +++ b/include/rapidjson/prettywriter.h @@ -49,6 +49,7 @@ public: PrettyWriter& Double(double d) { PrettyPrefix(kNumberType); Base::WriteDouble(d); return *this; }
PrettyWriter& String(const Ch* str, SizeType length, bool copy = false) {
+ (void)copy;
PrettyPrefix(kStringType);
Base::WriteString(str, length);
return *this;
@@ -62,6 +63,7 @@ public: }
PrettyWriter& EndObject(SizeType memberCount = 0) {
+ (void)memberCount;
RAPIDJSON_ASSERT(Base::level_stack_.GetSize() >= sizeof(typename Base::Level));
RAPIDJSON_ASSERT(!Base::level_stack_.template Top<typename Base::Level>()->inArray);
bool empty = Base::level_stack_.template Pop<typename Base::Level>(1)->valueCount == 0;
@@ -84,6 +86,7 @@ public: }
PrettyWriter& EndArray(SizeType memberCount = 0) {
+ (void)memberCount;
RAPIDJSON_ASSERT(Base::level_stack_.GetSize() >= sizeof(typename Base::Level));
RAPIDJSON_ASSERT(Base::level_stack_.template Top<typename Base::Level>()->inArray);
bool empty = Base::level_stack_.template Pop<typename Base::Level>(1)->valueCount == 0;
@@ -105,6 +108,7 @@ public: protected:
void PrettyPrefix(Type type) {
+ (void)type;
if (Base::level_stack_.GetSize() != 0) { // this value is not at root
typename Base::Level* level = Base::level_stack_.template Top<typename Base::Level>();
|