tst_qflatmap: fix -Wunused-local-typedef (Clang)

False Positive, of course, since it's used in dependent callee
transparent_impl().

Amends 58e8ae5605.

Pick-to: 6.3
Change-Id: I7520fb7cf6bce28a5fd9381783ba349119309132
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
Marc Mutz 2022-03-09 15:47:09 +01:00
parent 91fbe3fe78
commit eded55cfbb

View File

@ -511,7 +511,7 @@ void tst_QFlatMap::transparency_using()
{ {
struct StringViewCompare struct StringViewCompare
{ {
using is_transparent = void; using is_transparent [[maybe_unused]] = void;
bool operator()(QAnyStringView lhs, QAnyStringView rhs) const bool operator()(QAnyStringView lhs, QAnyStringView rhs) const
{ {
return lhs < rhs; return lhs < rhs;