QFlatMap: fix warning -Wunused-but-set-variable (GCC) in remove_if()

Amends 6f5c78fe3d.

Change-Id: I01a474f8ccb9de7d7b76a33a950542e38edc78e4
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Marc Mutz 2022-03-09 15:51:56 +01:00
parent eded55cfbb
commit d15222fbaf

View File

@ -867,7 +867,7 @@ public:
size_type remove_if(Predicate pred)
{
const auto indirect_call_to_pred = [pred = std::move(pred)](iterator it) {
auto dependent_false = [](auto &&...) { return false; };
[[maybe_unused]] auto dependent_false = [](auto &&...) { return false; };
using Pair = decltype(*it);
using K = decltype(it.key());
using V = decltype(it.value());