aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2018-02-15 21:57:19 -0800
committerThiago Macieira <thiago.macieira@intel.com>2018-02-16 06:21:48 +0000
commit97d1db53394077b5e5c159f5eb14af5e3ddb9158 (patch)
tree627242e49c2ece5c8b14e81149b9b017d14ef560 /src/qml/compiler
parentd028d2850e7ab998b5e8565d10373a0e738b4b2b (diff)
Add missing Q_FALLTRHOUGH()
Change-Id: I940917d6763842499b18fffd1513b8c1308ce873 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler')
-rw-r--r--src/qml/compiler/qv4codegen.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4codegen.cpp b/src/qml/compiler/qv4codegen.cpp
index 677032bb2b..5f0d7395f7 100644
--- a/src/qml/compiler/qv4codegen.cpp
+++ b/src/qml/compiler/qv4codegen.cpp
@@ -202,6 +202,7 @@ Codegen::Reference Codegen::unop(UnaryOperation op, const Reference &expr)
} else {
// intentionally fall-through: the result is never used, so it's equivalent to
// "expr += 1", which is what a pre-increment does as well.
+ Q_FALLTHROUGH();
}
case PreIncrement: {
Reference e = expr.asLValue();
@@ -227,6 +228,7 @@ Codegen::Reference Codegen::unop(UnaryOperation op, const Reference &expr)
} else {
// intentionally fall-through: the result is never used, so it's equivalent to
// "expr -= 1", which is what a pre-decrement does as well.
+ Q_FALLTHROUGH();
}
case PreDecrement: {
Reference e = expr.asLValue();