mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
chore: Fix all clang build warnings (#4475)
* chore: Fix all clang build warnings Also add `-Werror` to clang build in CI. Fixes #4449 * all build targets * fix search test
This commit is contained in:
parent
c759eb8ce6
commit
6f3c6e3d57
21 changed files with 51 additions and 69 deletions
|
@ -93,9 +93,7 @@ template <typename... Args> auto IsUnordArray(Args... args) {
|
|||
template <typename Expected, size_t... Is>
|
||||
void BuildKvMatchers(std::vector<Matcher<std::pair<std::string, RespExpr>>>& kv_matchers,
|
||||
const Expected& expected, std::index_sequence<Is...>) {
|
||||
std::initializer_list<int>{
|
||||
(kv_matchers.emplace_back(Pair(std::get<Is * 2>(expected), std::get<Is * 2 + 1>(expected))),
|
||||
0)...};
|
||||
(kv_matchers.emplace_back(Pair(std::get<Is * 2>(expected), std::get<Is * 2 + 1>(expected))), ...);
|
||||
}
|
||||
|
||||
MATCHER_P(IsMapMatcher, expected, "") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue