Fix debug warnings
This commit is contained in:
@@ -32,7 +32,7 @@ public:
|
||||
return newPtr;
|
||||
}
|
||||
|
||||
static void Free(void *ptr) {
|
||||
static void Free(void *) {
|
||||
// Arena allocators don't free individual allocations
|
||||
}
|
||||
|
||||
@@ -106,9 +106,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
bool Double(double) { return true; }
|
||||
bool RawNumber(const char *str, rapidjson::SizeType length, bool copy) {
|
||||
return Uint64(std::strtoull(str, nullptr, 10));
|
||||
}
|
||||
bool RawNumber(const char *, rapidjson::SizeType, bool) { abort(); }
|
||||
|
||||
bool String(const char *str, rapidjson::SizeType length, bool) {
|
||||
std::string_view value = store_string(str, length);
|
||||
@@ -272,9 +270,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
bool Double(double) { return true; }
|
||||
bool RawNumber(const char *str, rapidjson::SizeType length, bool copy) {
|
||||
return Uint64(std::strtoull(str, nullptr, 10));
|
||||
}
|
||||
bool RawNumber(const char *, rapidjson::SizeType, bool) { abort(); }
|
||||
|
||||
bool String(const char *str, rapidjson::SizeType length, bool) {
|
||||
std::string value(str, length);
|
||||
|
||||
Reference in New Issue
Block a user