Skip to content

Commit

Permalink
tst_qquickflickable: fix compiler warning
Browse files Browse the repository at this point in the history
tst_qquickflickable.cpp:822:47: warning: ignoring return value of ‘bool
 QTest::qWaitForWindowActive(QWindow*, int)’, declared with attribute
warn_unused_result [-Wunused-result]

Change-Id: I39be58a1032e36f650ce2e008026faaf368cca3f
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
  • Loading branch information
mitchcurtis committed Feb 8, 2018
1 parent 601ef22 commit 94afe0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/auto/quick/qquickflickable/tst_qquickflickable.cpp
Expand Up @@ -811,7 +811,7 @@ void tst_qquickflickable::returnToBounds()
window->rootContext()->setContextProperty("setRebound", setRebound);
window->setSource(testFileUrl("resize.qml"));
window->show();
QTest::qWaitForWindowActive(window.data());
QVERIFY(QTest::qWaitForWindowActive(window.data()));
QVERIFY(window->rootObject() != 0);
QQuickFlickable *obj = findItem<QQuickFlickable>(window->rootObject(), "flick");

Expand Down

0 comments on commit 94afe0d

Please sign in to comment.