mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
Mark unused variables
This commit is contained in:
@@ -6,7 +6,6 @@ namespace logger {
|
||||
static constexpr const int LOG_EVENT_LEN = 20;
|
||||
static constexpr const int LOG_BUFFER_LEN = 30;
|
||||
static constexpr const int LOG_SMALL_BUFFER_LEN = 10;
|
||||
static constexpr const int LOG_INDEX_LEN = 5;
|
||||
using SIMDJSON_IMPLEMENTATION::logger::DASHES;
|
||||
using SIMDJSON_IMPLEMENTATION::logger::printable_char;
|
||||
|
||||
|
||||
@@ -15,11 +15,11 @@ simdjson_really_inline SIMDJSON_WARN_UNUSED simdjson_result<std::string_view> ra
|
||||
return result;
|
||||
}
|
||||
|
||||
simdjson_really_inline bool operator==(const raw_json_string &a, std::string_view b) noexcept {
|
||||
SIMDJSON_UNUSED simdjson_really_inline bool operator==(const raw_json_string &a, std::string_view b) noexcept {
|
||||
return !strncmp(a.raw(), b.data(), b.size());
|
||||
}
|
||||
|
||||
simdjson_really_inline bool operator==(std::string_view a, const raw_json_string &b) noexcept {
|
||||
SIMDJSON_UNUSED simdjson_really_inline bool operator==(std::string_view a, const raw_json_string &b) noexcept {
|
||||
return b == a;
|
||||
}
|
||||
|
||||
|
||||
@@ -23,8 +23,8 @@ private:
|
||||
friend class object;
|
||||
};
|
||||
|
||||
simdjson_really_inline bool operator==(const raw_json_string &a, std::string_view b) noexcept;
|
||||
simdjson_really_inline bool operator==(std::string_view a, const raw_json_string &b) noexcept;
|
||||
SIMDJSON_UNUSED simdjson_really_inline bool operator==(const raw_json_string &a, std::string_view b) noexcept;
|
||||
SIMDJSON_UNUSED simdjson_really_inline bool operator==(std::string_view a, const raw_json_string &b) noexcept;
|
||||
|
||||
} // namespace ondemand
|
||||
} // namespace SIMDJSON_IMPLEMENTATION
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace logger {
|
||||
}
|
||||
}
|
||||
|
||||
static simdjson_really_inline void log_string(const char *message) {
|
||||
SIMDJSON_UNUSED static simdjson_really_inline void log_string(const char *message) {
|
||||
if (LOG_ENABLED) {
|
||||
printf("%s\n", message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user