From befda75eb0adc1a4b39e7f8e0c78d667160a6c41 Mon Sep 17 00:00:00 2001 From: Ville Voutilainen Date: Wed, 12 Apr 2017 09:19:06 +0300 Subject: Fix gcc 7 build We seem to get something that looks very much like a false positive for a maybe-uninitialized value. Disable -Wmaybe-uninitialized in the offending header file. Change-Id: If79bc7798df50f4dd0dcf63399213b4e4a7cdbd3 Reviewed-by: Thiago Macieira --- src/xmlpatterns/api/qabstractxmlnodemodel.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xmlpatterns/api/qabstractxmlnodemodel.h b/src/xmlpatterns/api/qabstractxmlnodemodel.h index 6b6593d..db3cd4d 100644 --- a/src/xmlpatterns/api/qabstractxmlnodemodel.h +++ b/src/xmlpatterns/api/qabstractxmlnodemodel.h @@ -187,6 +187,8 @@ public: return m_storage.model; } +QT_WARNING_PUSH +QT_WARNING_DISABLE_GCC("-Wmaybe-uninitialized") inline qint64 additionalData() const { return m_storage.additionalData; @@ -196,6 +198,7 @@ public: { return !m_storage.model; } +QT_WARNING_POP /* The members below are internal, not part of the public API, and * unsupported. Using them leads to undefined behavior. */ -- cgit v1.2.1