mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Fix C++ warning about unused variable
The insert_it variable is unused, and some compilers warn about it, causing -Werror builds to fail.
This commit is contained in:
parent
5fc5563c99
commit
fa294c9b02
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ SCENARIO("Struct field iteration")
|
||||||
for (; it != end; ++it) {
|
for (; it != end; ++it) {
|
||||||
const auto [key, value] = *it;
|
const auto [key, value] = *it;
|
||||||
REQUIRE(check_valid_entry(key, value));
|
REQUIRE(check_valid_entry(key, value));
|
||||||
auto [insert_it, value_inserted] = seen_fields.insert(std::string(key));
|
auto value_inserted = seen_fields.insert(std::string(key)).second;
|
||||||
REQUIRE(value_inserted);
|
REQUIRE(value_inserted);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue