From f16b5045962bd954ba0302a4fa370ec852305922 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6hning?= Date: Thu, 20 Jun 2024 21:35:54 +0200 Subject: [PATCH] QMovie: Fix compiler warning in test warning: unused variable 'frameCount' [-Wunused-variable] QFETCH(int, frameCount); ^ Change-Id: Id0cc8e48d01b0e4380b48374934d609c40666673 Reviewed-by: Eirik Aavitsland --- tests/auto/gui/image/qmovie/tst_qmovie.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/auto/gui/image/qmovie/tst_qmovie.cpp b/tests/auto/gui/image/qmovie/tst_qmovie.cpp index 29c3297043c..b16ea485145 100644 --- a/tests/auto/gui/image/qmovie/tst_qmovie.cpp +++ b/tests/auto/gui/image/qmovie/tst_qmovie.cpp @@ -125,7 +125,6 @@ void tst_QMovie::playMovie_data() void tst_QMovie::playMovie() { QFETCH(QString, fileName); - QFETCH(int, frameCount); QMovie movie(QFINDTESTDATA(fileName)); @@ -147,6 +146,8 @@ void tst_QMovie::playMovie() connect(&movie, SIGNAL(finished()), this, SLOT(exitLoopSlot())); #ifndef QT_NO_WIDGETS + QFETCH(int, frameCount); + QLabel label; label.setMovie(&movie); label.show();