diff --git a/examples/CalcQt/features/step_definitions/CalculatorQtSteps.cpp b/examples/CalcQt/features/step_definitions/CalculatorQtSteps.cpp index f0d230dc..9531b490 100644 --- a/examples/CalcQt/features/step_definitions/CalculatorQtSteps.cpp +++ b/examples/CalcQt/features/step_definitions/CalculatorQtSteps.cpp @@ -36,11 +36,19 @@ GIVEN("^I just turned on the calculator$") { cucumber::ScenarioScope ctx; ctx->calculator.move(0, 0); ctx->calculator.show(); +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunused-result" +#endif #if QT_VERSION >= 0x050000 QTest::qWaitForWindowExposed(&ctx->calculator); #else QTest::qWaitForWindowShown(&ctx->calculator); #endif +#ifdef __clang__ +#pragma clang diagnostic pop +#endif + QTest::qWait(millisecondsToWait()); }