Mark unused variables

This commit is contained in:
John Keiser
2020-08-19 16:05:36 -07:00
parent a58d2f710d
commit 12caf2510e
4 changed files with 5 additions and 6 deletions
-1
View File
@@ -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;
+2 -2
View File
@@ -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;
}
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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);
}