From eded55cfbbb5816916fcef2000bc60b64246bd68 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Wed, 9 Mar 2022 15:47:09 +0100 Subject: [PATCH] tst_qflatmap: fix -Wunused-local-typedef (Clang) False Positive, of course, since it's used in dependent callee transparent_impl(). Amends 58e8ae5605abefd0f579586a890dc13fb381b2a3. Pick-to: 6.3 Change-Id: I7520fb7cf6bce28a5fd9381783ba349119309132 Reviewed-by: Fabian Kosmale --- tests/auto/corelib/tools/qflatmap/tst_qflatmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/corelib/tools/qflatmap/tst_qflatmap.cpp b/tests/auto/corelib/tools/qflatmap/tst_qflatmap.cpp index ae6fcd6cad3..2dd6c16f13d 100644 --- a/tests/auto/corelib/tools/qflatmap/tst_qflatmap.cpp +++ b/tests/auto/corelib/tools/qflatmap/tst_qflatmap.cpp @@ -511,7 +511,7 @@ void tst_QFlatMap::transparency_using() { struct StringViewCompare { - using is_transparent = void; + using is_transparent [[maybe_unused]] = void; bool operator()(QAnyStringView lhs, QAnyStringView rhs) const { return lhs < rhs;