From b05d8749bc6fbca468df58e93d7a7d5ac74d079b Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Mon, 23 Nov 2020 12:38:22 +0100 Subject: Fix compiler warning about discarded return value Not testing the result of the copying, just verifying that it doesn't assert. Change-Id: Ib51129134b74c17eada7e3819ccfff10bb9affbf Reviewed-by: Allan Sandfeld Jensen (cherry picked from commit e59ab8b5907f87a77cc6924abab5fb1c82483856) Reviewed-by: Qt Cherry-pick Bot --- tests/auto/gui/image/qimage/tst_qimage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto/gui') diff --git a/tests/auto/gui/image/qimage/tst_qimage.cpp b/tests/auto/gui/image/qimage/tst_qimage.cpp index 141cc26aff..94014bd4ef 100644 --- a/tests/auto/gui/image/qimage/tst_qimage.cpp +++ b/tests/auto/gui/image/qimage/tst_qimage.cpp @@ -1220,7 +1220,7 @@ void tst_QImage::copy() // Task 99250 { QImage img(16,16,QImage::Format_ARGB32); - img.copy(QRect(1000,1,1,1)); + (void)img.copy(QRect(1000,1,1,1)); } } -- cgit v1.2.3