From 8ac80ab1499366eafa8f140b6685a6601e4adac4 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 9 Jan 2024 10:54:27 +0100 Subject: [PATCH] tst_moc: fix some -Wunused-* warnings on MinGW Found while inspecting a recent MingWG log file from the CI. Amends da284ef10e0ef80776b9fc9b7bb0e6dc8d71ba63. Pick-to: 6.5 6.2 Change-Id: Ife10118710079e60c581314fa857be42452fe810 Reviewed-by: Fabian Kosmale Reviewed-by: Thiago Macieira (cherry picked from commit 56ca2595526360f98d7824d815552635f87f178f) Reviewed-by: Qt Cherry-pick Bot (cherry picked from commit ea57719d56024e2327289f924f31a6fbf3a91cb2) --- tests/auto/tools/moc/tst_moc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/auto/tools/moc/tst_moc.cpp b/tests/auto/tools/moc/tst_moc.cpp index 31732ddf37c..515a1a84c14 100644 --- a/tests/auto/tools/moc/tst_moc.cpp +++ b/tests/auto/tools/moc/tst_moc.cpp @@ -4289,6 +4289,8 @@ void tst_Moc::mocJsonOutput() return "Error waiting for diff process to finish."; return diffProc.readAllStandardOutput(); #else + Q_UNUSED(actual); + Q_UNUSED(expected); return "Cannot launch diff. Please check allmocs.json and allmocs_baseline.json on disk."; #endif };