Skip to content

Commit 15ea7d0

Browse files
committed
Mark unused variables
1 parent f04bbd5 commit 15ea7d0

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

src/generic/ondemand/logger-inl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ namespace logger {
66
static constexpr const int LOG_EVENT_LEN = 20;
77
static constexpr const int LOG_BUFFER_LEN = 30;
88
static constexpr const int LOG_SMALL_BUFFER_LEN = 10;
9-
static constexpr const int LOG_INDEX_LEN = 5;
109
using SIMDJSON_IMPLEMENTATION::logger::DASHES;
1110
using SIMDJSON_IMPLEMENTATION::logger::printable_char;
1211

src/generic/ondemand/raw_json_string-inl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ simdjson_really_inline SIMDJSON_WARN_UNUSED simdjson_result<std::string_view> ra
1515
return result;
1616
}
1717

18-
simdjson_really_inline bool operator==(const raw_json_string &a, std::string_view b) noexcept {
18+
SIMDJSON_UNUSED simdjson_really_inline bool operator==(const raw_json_string &a, std::string_view b) noexcept {
1919
return !strncmp(a.raw(), b.data(), b.size());
2020
}
2121

22-
simdjson_really_inline bool operator==(std::string_view a, const raw_json_string &b) noexcept {
22+
SIMDJSON_UNUSED simdjson_really_inline bool operator==(std::string_view a, const raw_json_string &b) noexcept {
2323
return b == a;
2424
}
2525

src/generic/ondemand/raw_json_string.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class raw_json_string {
2323
friend class object;
2424
};
2525

26-
simdjson_really_inline bool operator==(const raw_json_string &a, std::string_view b) noexcept;
27-
simdjson_really_inline bool operator==(std::string_view a, const raw_json_string &b) noexcept;
26+
SIMDJSON_UNUSED simdjson_really_inline bool operator==(const raw_json_string &a, std::string_view b) noexcept;
27+
SIMDJSON_UNUSED simdjson_really_inline bool operator==(std::string_view a, const raw_json_string &b) noexcept;
2828

2929
} // namespace ondemand
3030
} // namespace SIMDJSON_IMPLEMENTATION

src/generic/stage2/logger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace logger {
3737
}
3838
}
3939

40-
static simdjson_really_inline void log_string(const char *message) {
40+
SIMDJSON_UNUSED static simdjson_really_inline void log_string(const char *message) {
4141
if (LOG_ENABLED) {
4242
printf("%s\n", message);
4343
}

0 commit comments

Comments
 (0)