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;