From cde7835903812f6629ddcd6c8cdc91f2da195c9b Mon Sep 17 00:00:00 2001 From: Lars Schmertmann Date: Sat, 27 Jun 2020 12:51:56 +0200 Subject: Add ; to Q_UNUSED This is required to remove the ; from the macro with Qt 6. It is not required in GET_QML_TABLEVIEW because it is the last instruction of the macro. Task-number: QTBUG-82978 Change-Id: I17458daea8f10fd5a211d76bddc60320b3714df3 Reviewed-by: Shawn Rutledge --- tests/auto/qml/qjsvalue/tst_qjsvalue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto/qml/qjsvalue') diff --git a/tests/auto/qml/qjsvalue/tst_qjsvalue.cpp b/tests/auto/qml/qjsvalue/tst_qjsvalue.cpp index 2420aea9b8..9a0394c7bd 100644 --- a/tests/auto/qml/qjsvalue/tst_qjsvalue.cpp +++ b/tests/auto/qml/qjsvalue/tst_qjsvalue.cpp @@ -2727,7 +2727,7 @@ void tst_QJSValue::jsvalueArrayToSequenceType() QVERIFY(asVariant.canConvert()); auto asIterable = asVariant.value(); for (auto it = asIterable.begin(); it != asIterable.end(); ++it) { - Q_UNUSED(*it) + Q_UNUSED(*it); } int i = 0; for (QVariant myVariant: asIterable) { -- cgit v1.2.3