Try to fix clang and gcc warnings problems again x9

Abandon RAPIDJSON_NORETURN_SUFFIX
This commit is contained in:
Milo Yip
2015-12-18 20:34:46 +08:00
parent efdbdc6016
commit 5c003f3ecb
4 changed files with 9 additions and 15 deletions

View File

@@ -25,6 +25,7 @@ using namespace rapidjson;
RAPIDJSON_DIAG_PUSH
RAPIDJSON_DIAG_OFF(effc++)
RAPIDJSON_DIAG_OFF(float-equal)
RAPIDJSON_DIAG_OFF(missing-noreturn)
#endif
#ifdef __clang__
@@ -1040,8 +1041,8 @@ public:
size_t Tell() const { return static_cast<size_t>(is_.tellg()); }
Ch* PutBegin() { assert(false); return 0; }
void Put(Ch) RAPIDJSON_NORETURN_SUFFIX { assert(false); }
void Flush() RAPIDJSON_NORETURN_SUFFIX { assert(false); }
void Put(Ch) { assert(false); }
void Flush() { assert(false); }
size_t PutEnd(Ch*) { assert(false); return 0; }
private: