From d61089d7550b9589e22a77de5d8452ac655898e9 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 5 Feb 2021 17:44:58 +0200 Subject: [PATCH] Suppress a warning. --- src/libs/vlayout/vlayoutpiece.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libs/vlayout/vlayoutpiece.cpp b/src/libs/vlayout/vlayoutpiece.cpp index cc83c765d..26b742983 100644 --- a/src/libs/vlayout/vlayoutpiece.cpp +++ b/src/libs/vlayout/vlayoutpiece.cpp @@ -256,8 +256,14 @@ QVector ConvertPassmarks(const VPiece &piece, const VContainer auto PreapreBuiltInSAPassmark = [pData, passmark, piece, &layoutPassmarks, pattern]() { + QT_WARNING_PUSH + QT_WARNING_DISABLE_GCC("-Wnoexcept") + // noexcept-expression evaluates to 'false' because of a call to 'constexpr QPointF::QPointF()' + VLayoutPassmark layoutPassmark; + QT_WARNING_POP + const QVector path = piece.GetUnitedPath(pattern); const int nodeIndex = VPiecePath::indexOfNode(path, pData.id); if (nodeIndex != -1)