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)