Fix debug warnings
This commit is contained in:
@@ -32,7 +32,7 @@ public:
|
|||||||
return newPtr;
|
return newPtr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Free(void *ptr) {
|
static void Free(void *) {
|
||||||
// Arena allocators don't free individual allocations
|
// Arena allocators don't free individual allocations
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -106,9 +106,7 @@ public:
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
bool Double(double) { return true; }
|
bool Double(double) { return true; }
|
||||||
bool RawNumber(const char *str, rapidjson::SizeType length, bool copy) {
|
bool RawNumber(const char *, rapidjson::SizeType, bool) { abort(); }
|
||||||
return Uint64(std::strtoull(str, nullptr, 10));
|
|
||||||
}
|
|
||||||
|
|
||||||
bool String(const char *str, rapidjson::SizeType length, bool) {
|
bool String(const char *str, rapidjson::SizeType length, bool) {
|
||||||
std::string_view value = store_string(str, length);
|
std::string_view value = store_string(str, length);
|
||||||
@@ -272,9 +270,7 @@ public:
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
bool Double(double) { return true; }
|
bool Double(double) { return true; }
|
||||||
bool RawNumber(const char *str, rapidjson::SizeType length, bool copy) {
|
bool RawNumber(const char *, rapidjson::SizeType, bool) { abort(); }
|
||||||
return Uint64(std::strtoull(str, nullptr, 10));
|
|
||||||
}
|
|
||||||
|
|
||||||
bool String(const char *str, rapidjson::SizeType length, bool) {
|
bool String(const char *str, rapidjson::SizeType length, bool) {
|
||||||
std::string value(str, length);
|
std::string value(str, length);
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ private:
|
|||||||
ArenaString current_key;
|
ArenaString current_key;
|
||||||
ArenaString current_string;
|
ArenaString current_string;
|
||||||
ArenaString current_number;
|
ArenaString current_number;
|
||||||
bool in_key = false;
|
|
||||||
const char *parse_error = nullptr;
|
const char *parse_error = nullptr;
|
||||||
bool parse_complete = false;
|
bool parse_complete = false;
|
||||||
bool has_read_version_been_set = false;
|
bool has_read_version_been_set = false;
|
||||||
@@ -82,7 +81,6 @@ private:
|
|||||||
current_key = ArenaString{ArenaStlAllocator<char>(arena)};
|
current_key = ArenaString{ArenaStlAllocator<char>(arena)};
|
||||||
current_string = ArenaString{ArenaStlAllocator<char>(arena)};
|
current_string = ArenaString{ArenaStlAllocator<char>(arena)};
|
||||||
current_number = ArenaString{ArenaStlAllocator<char>(arena)};
|
current_number = ArenaString{ArenaStlAllocator<char>(arena)};
|
||||||
in_key = false;
|
|
||||||
current_precondition = {};
|
current_precondition = {};
|
||||||
current_operation = {};
|
current_operation = {};
|
||||||
precondition_type = ArenaString{ArenaStlAllocator<char>(arena)};
|
precondition_type = ArenaString{ArenaStlAllocator<char>(arena)};
|
||||||
@@ -152,4 +150,4 @@ private:
|
|||||||
void handle_completed_string(std::string_view s);
|
void handle_completed_string(std::string_view s);
|
||||||
void handle_completed_number(std::string_view s);
|
void handle_completed_number(std::string_view s);
|
||||||
void on_complete();
|
void on_complete();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user