diff options
author | Erik Verbruggen <erik.verbruggen@qt.io> | 2017-09-13 15:15:14 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@qt.io> | 2017-09-13 14:08:36 +0000 |
commit | 29bce8e5977158b7766b241ba3b1d36dd79ebebf (patch) | |
tree | ad989b54f9b887c104f5b27ca12710e1f85dd2ae /src/qml/compiler/qv4instr_moth_p.h | |
parent | b05a38c130220e6f6325f6df6e99f7b731e43fd1 (diff) |
Work around different GCC versions' idea of uninitialized
Also disable -Wmaybe-uninitialized after disabling -Wuninitialized,
because the logic for this warning differs per GCC version.
Change-Id: I52e26cfd735e437d3ad59c2be22df6c67a1245b1
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4instr_moth_p.h')
-rw-r--r-- | src/qml/compiler/qv4instr_moth_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4instr_moth_p.h b/src/qml/compiler/qv4instr_moth_p.h index 3f6e7b9db4..398970b60f 100644 --- a/src/qml/compiler/qv4instr_moth_p.h +++ b/src/qml/compiler/qv4instr_moth_p.h @@ -493,6 +493,7 @@ struct InstrMeta { QT_WARNING_PUSH QT_WARNING_DISABLE_GCC("-Wuninitialized") +QT_WARNING_DISABLE_GCC("-Wmaybe-uninitialized") #define MOTH_INSTR_META_TEMPLATE(I) \ template<> struct InstrMeta<int(Instr::Type::I)> { \ enum { Size = MOTH_INSTR_SIZE(I) }; \ |