aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/qmlcompiler/qqmljsscope_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljsscope_p.h b/src/qmlcompiler/qqmljsscope_p.h
index 127d58abcc..f5b0c4aedb 100644
--- a/src/qmlcompiler/qqmljsscope_p.h
+++ b/src/qmlcompiler/qqmljsscope_p.h
@@ -303,7 +303,12 @@ public:
QQmlJSScope::ConstPtr parentScope() const
{
+QT_WARNING_PUSH
+#if defined(Q_CC_GNU_ONLY) && Q_CC_GNU < 1400
+ QT_WARNING_DISABLE_GCC("-Wuse-after-free")
+#endif
return QQmlJSScope::WeakConstPtr(m_parentScope).toStrongRef();
+QT_WARNING_POP
}
static void reparent(const QQmlJSScope::Ptr &parentScope, const QQmlJSScope::Ptr &childScope);