diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-11-23 12:38:22 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-11-23 12:51:41 +0100 |
commit | e59ab8b5907f87a77cc6924abab5fb1c82483856 (patch) | |
tree | 9966cdec23cff304b2e06681eba2f6e2e4541819 /tests/auto | |
parent | 146b37cdf376fb2fde85fa27326acfbeb2a024e3 (diff) |
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 <allan.jensen@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/gui/image/qimage/tst_qimage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } } |