From 8b2f1b4d1a874cfda286c3e6b0b2445762497fa3 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Thu, 30 Jan 2025 11:05:24 +0100 Subject: [PATCH] Fix warning from ignored return value of [[nodiscard]] function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pick-to: 6.8 6.5 Change-Id: I1e293773d70cda1c58c4f3dc798ce2f65224ed9d Reviewed-by: Thiago Macieira Reviewed-by: Øystein Heskestad (cherry picked from commit 823c2bfc13feb13cabc89638423274f560239087) Reviewed-by: Marc Mutz --- tests/auto/corelib/tools/collections/tst_collections.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/auto/corelib/tools/collections/tst_collections.cpp b/tests/auto/corelib/tools/collections/tst_collections.cpp index 1aded0b4409..cf5a0b692e9 100644 --- a/tests/auto/corelib/tools/collections/tst_collections.cpp +++ b/tests/auto/corelib/tools/collections/tst_collections.cpp @@ -2831,8 +2831,8 @@ void instantiateContainer() container.clear(); container.contains(value); container.size(); - container.empty(); - container.isEmpty(); + Q_UNUSED(container.empty()); + Q_UNUSED(container.isEmpty()); container.size(); Q_UNUSED((container != constContainer));