From a368b5fdf4d33361e03a2f05b6f159566dd06e9d Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 27 May 2019 13:06:57 +0200 Subject: Fix warnings about fall through Use Q_FALLTHROUGH, fixing: ../../src/scxml/qscxmlcompiler.cpp:1591:9: warning: this statement may fall through [-Wimplicit-fallthrough=] ../../src/scxml/qscxmlcompiler.cpp:1610:9: warning: this statement may fall through [-Wimplicit-fallthrough=] Change-Id: I39fb346f1c5fa3e328ee82aa14675557034439c9 Reviewed-by: Jarek Kobus --- src/scxml/qscxmlcompiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scxml/qscxmlcompiler.cpp b/src/scxml/qscxmlcompiler.cpp index e2e9b4c..36967d1 100644 --- a/src/scxml/qscxmlcompiler.cpp +++ b/src/scxml/qscxmlcompiler.cpp @@ -1589,7 +1589,7 @@ bool QScxmlCompilerPrivate::preReadElementOnEntry() current().instructionContainer = m_doc->newSequence(&s->onEntry); break; } - // intentional fall-through + Q_FALLTHROUGH(); default: addError(QStringLiteral("unexpected container state for onentry")); break; @@ -1608,7 +1608,7 @@ bool QScxmlCompilerPrivate::preReadElementOnExit() current().instructionContainer = m_doc->newSequence(&s->onExit); break; } - // intentional fall-through + Q_FALLTHROUGH(); default: addError(QStringLiteral("unexpected container state for onexit")); break; -- cgit v1.2.3