From 29bce8e5977158b7766b241ba3b1d36dd79ebebf Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Wed, 13 Sep 2017 15:15:14 +0200 Subject: 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 --- src/qml/compiler/qv4instr_moth_p.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/qml/compiler/qv4instr_moth_p.h') 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 { \ enum { Size = MOTH_INSTR_SIZE(I) }; \ -- cgit v1.2.3