diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-03-09 15:51:56 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-03-11 20:15:49 +0100 |
commit | d15222fbaf2a94ebaef42d90060c73fdad6fe2ca (patch) | |
tree | 8c863ea4d7d727bad00d3e267ee7ea466b04d078 /src/corelib/tools/qflatmap_p.h | |
parent | eded55cfbbb5816916fcef2000bc60b64246bd68 (diff) |
QFlatMap: fix warning -Wunused-but-set-variable (GCC) in remove_if()
Amends 6f5c78fe3d445f1c6c8738f9cedb9dbd847645fa.
Change-Id: I01a474f8ccb9de7d7b76a33a950542e38edc78e4
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/tools/qflatmap_p.h')
-rw-r--r-- | src/corelib/tools/qflatmap_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qflatmap_p.h b/src/corelib/tools/qflatmap_p.h index 7500cfb42d..807a68ffaa 100644 --- a/src/corelib/tools/qflatmap_p.h +++ b/src/corelib/tools/qflatmap_p.h @@ -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()); |