mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-28 19:52:02 +01:00
Try to fix clang and gcc warnings problems again x9
Abandon RAPIDJSON_NORETURN_SUFFIX
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user