diff options
author | Thiago Macieira <[email protected]> | 2013-09-04 17:45:29 -0700 |
---|---|---|
committer | The Qt Project <[email protected]> | 2013-09-09 22:58:45 +0200 |
commit | 48ba62234c48cbb724784363d65a510c206e31bd (patch) | |
tree | ec88617e4c8e9c76cbd228509a64bac9897a3dd2 /src/qml/compiler/qv4isel_util_p.h | |
parent | b8dcbb12a25916472e047e4bdceadfbd27bdba9c (diff) |
Fix warning by ICC: function without return value
Yes, it can't be reached due to the Q_UNREACHABLE(). ICC expands that to an
__assume(0), which I guess isn't strong enough.
qv4isel_util_p.h(94): error #1011: missing return statement at end of non-void function "QQmlJS::convertToValue"
Change-Id: I41d9fd7382a41fe0e753812fc1d71fdc802ef854
Reviewed-by: Lars Knoll <[email protected]>
Diffstat (limited to 'src/qml/compiler/qv4isel_util_p.h')
-rw-r--r-- | src/qml/compiler/qv4isel_util_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4isel_util_p.h b/src/qml/compiler/qv4isel_util_p.h index 2e3b64c360..610988ce0c 100644 --- a/src/qml/compiler/qv4isel_util_p.h +++ b/src/qml/compiler/qv4isel_util_p.h @@ -91,6 +91,8 @@ inline QV4::Value convertToValue(V4IR::Const *c) default: Q_UNREACHABLE(); } + // unreachable, but the function must return something + return QV4::Value::undefinedValue(); } } // namespace QQmlJS |