From e59ab8b5907f87a77cc6924abab5fb1c82483856 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Mon, 23 Nov 2020 12:38:22 +0100 Subject: [PATCH] Fix compiler warning about discarded return value Not testing the result of the copying, just verifying that it doesn't assert. Pick-to: 6.0 Change-Id: Ib51129134b74c17eada7e3819ccfff10bb9affbf Reviewed-by: Allan Sandfeld Jensen --- tests/auto/gui/image/qimage/tst_qimage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } }