diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-05-27 13:06:57 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-05-27 13:08:23 +0200 |
commit | a368b5fdf4d33361e03a2f05b6f159566dd06e9d (patch) | |
tree | f35fe2ac88d8da34dd0aebea440cc7c38ba11415 /src | |
parent | 80a9f4dfd078c4df1bc2c7fa279d637debfd672a (diff) |
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 <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/scxml/qscxmlcompiler.cpp | 4 |
1 files 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; |