From 6e861d8412b28472571d675e6a600f4a6dcbb4b7 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 20 Jun 2017 14:32:27 +0200 Subject: pathstroke example: Add Q_FALLTHROUGH to unmarked fallthrough seen by GCC 7 Task-number: QTBUG-60635 Change-Id: I10695f96122f1b0859bbe7fadb349efb3c7277a6 Reviewed-by: Shawn Rutledge --- examples/widgets/painting/pathstroke/pathstroke.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/widgets/painting/pathstroke/pathstroke.cpp b/examples/widgets/painting/pathstroke/pathstroke.cpp index dc10457d27..1e2f75b2a5 100644 --- a/examples/widgets/painting/pathstroke/pathstroke.cpp +++ b/examples/widgets/painting/pathstroke/pathstroke.cpp @@ -600,6 +600,7 @@ bool PathStrokeRenderer::event(QEvent *e) switch (e->type()) { case QEvent::TouchBegin: touchBegin = true; + Q_FALLTHROUGH(); case QEvent::TouchUpdate: { const QTouchEvent *const event = static_cast(e); -- cgit v1.2.3