Suppress VS2013 warnings due to #64

This commit is contained in:
Milo Yip 2014-07-13 01:10:25 +08:00
parent 8d70a8d03e
commit 9e3ed44e85
2 changed files with 5 additions and 1 deletions

View File

@ -1350,6 +1350,8 @@ private:
explicit ClearStackOnExit(GenericDocument& d) : d_(d) {} explicit ClearStackOnExit(GenericDocument& d) : d_(d) {}
~ClearStackOnExit() { d_.ClearStack(); } ~ClearStackOnExit() { d_.ClearStack(); }
private: private:
ClearStackOnExit(const ClearStackOnExit&);
ClearStackOnExit& operator=(const ClearStackOnExit&);
GenericDocument& d_; GenericDocument& d_;
}; };

View File

@ -348,6 +348,8 @@ private:
~ClearStackOnExit() { r_.ClearStack(); } ~ClearStackOnExit() { r_.ClearStack(); }
private: private:
GenericReader& r_; GenericReader& r_;
ClearStackOnExit(const ClearStackOnExit&);
ClearStackOnExit& operator=(const ClearStackOnExit&);
}; };
// Parse object: { string : value, ... } // Parse object: { string : value, ... }
@ -611,7 +613,7 @@ private:
} }
// Parse int: zero / ( digit1-9 *DIGIT ) // Parse int: zero / ( digit1-9 *DIGIT )
unsigned i; unsigned i = 0;
bool try64bit = false; bool try64bit = false;
if (s.Peek() == '0') { if (s.Peek() == '0') {
i = 0; i = 0;