From 0e12e9f9fb1487c19ce07310cbec65b3724437ba Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 7 Jan 2020 12:55:23 +0200 Subject: [PATCH] Suppress warning Wnoexcept. Cannot fix because QPointF is part of library. --HG-- branch : develop --- src/libs/vlayout/vlayoutpiece.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/libs/vlayout/vlayoutpiece.cpp b/src/libs/vlayout/vlayoutpiece.cpp index 8032a2c72..7d61f7c68 100644 --- a/src/libs/vlayout/vlayoutpiece.cpp +++ b/src/libs/vlayout/vlayoutpiece.cpp @@ -225,6 +225,10 @@ QVector ConvertPlaceLabels(const VPiece &piece, const VContai const auto label = pattern->GeometricObject(placeLabel); if (label->IsVisible()) { + QT_WARNING_PUSH + QT_WARNING_DISABLE_GCC("-Wnoexcept") + // noexcept-expression evaluates to 'false' because of a call to 'constexpr QPointF::QPointF()' + VLayoutPlaceLabel layoutLabel; layoutLabel.shape = label->LabelShape(); layoutLabel.rotationMatrix = label->RotationMatrix(); @@ -232,6 +236,8 @@ QVector ConvertPlaceLabels(const VPiece &piece, const VContai layoutLabel.center = label->toQPointF(); layoutLabel.type = label->GetLabelType(); labels.append(layoutLabel); + + QT_WARNING_POP } } return labels; @@ -275,8 +281,14 @@ QVector ConvertPassmarks(const VPiece &piece, const VContainer auto PrepareSAPassmark = [pData, passmark, piece, &layoutPassmarks, pattern](PassmarkSide side) { + 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)