tst_moc: fix some -Wunused-* warnings on MinGW

Found while inspecting a recent MingWG log file from the CI.

Amends da284ef10e.

Pick-to: 6.7 6.6 6.5 6.2
Change-Id: Ife10118710079e60c581314fa857be42452fe810
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Marc Mutz 2024-01-09 10:54:27 +01:00
parent 93af86bad5
commit 56ca259552
1 changed files with 2 additions and 0 deletions

View File

@ -4279,6 +4279,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
};