aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/common
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-10-23 09:37:39 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-10-23 13:27:34 +0200
commit076b65fa3d94de9ccc5d1a3c2a8e8d48f47e8d65 (patch)
tree14e0f718e0d1b80c532732c3eda75375c44eb16b /src/qml/common
parentfa9808bad0f8d62b321c58f3026c54ace311b71b (diff)
Initialize members to shut up gcc
Possibly a compiler bug: In member function ‘virtual bool QmlIR::IRBuilder::visit(QQmlJS::AST::UiObjectBinding*)’: error: ‘<anonymous>.QSpecialIntegerBitfield<QLittleEndianStorageType<unsigned int>, 0, 20>::val’ is used uninitialized in this function [-Werror=uninitialized] UT i = S::fromSpecial(val); ~~~~~~~~~~~~~~^~~~~ This seems to be the only effective way of shutting up gcc. Change-Id: Ib72bdcafb7336e67cf22ef67c56c7c74421eb12d Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/common')
-rw-r--r--src/qml/common/qv4compileddata_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/common/qv4compileddata_p.h b/src/qml/common/qv4compileddata_p.h
index afb4018c8a..4f2c49fbdc 100644
--- a/src/qml/common/qv4compileddata_p.h
+++ b/src/qml/common/qv4compileddata_p.h
@@ -136,6 +136,7 @@ struct Location
Location() : _dummy(0) { }
Location(quint32 l, quint32 c)
+ : Location()
{
line = l;
column = c;