Suppress warnings.

This commit is contained in:
Roman Telezhynskyi 2023-02-09 16:18:13 +02:00
parent 19c5b80b24
commit 659e1f6fc0
8 changed files with 60 additions and 0 deletions

View File

@ -1647,7 +1647,13 @@ void VPattern::ParseToolAlongLine(VMainGraphicsScene *scene, QDomElement &domEle
try try
{ {
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wnoexcept")
VToolAlongLineInitData initData; VToolAlongLineInitData initData;
QT_WARNING_POP
initData.scene = scene; initData.scene = scene;
initData.doc = this; initData.doc = this;
initData.data = data; initData.data = data;
@ -2337,7 +2343,13 @@ void VPattern::ParseToolCurveIntersectAxis(VMainGraphicsScene *scene, QDomElemen
try try
{ {
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wnoexcept")
VToolCurveIntersectAxisInitData initData; VToolCurveIntersectAxisInitData initData;
QT_WARNING_POP
initData.scene = scene; initData.scene = scene;
initData.doc = this; initData.doc = this;
initData.data = data; initData.data = data;
@ -2461,7 +2473,13 @@ void VPattern::ParseToolPointOfIntersectionCurves(VMainGraphicsScene *scene, QDo
try try
{ {
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wnoexcept")
VToolPointOfIntersectionCurvesInitData initData; VToolPointOfIntersectionCurvesInitData initData;
QT_WARNING_POP
initData.scene = scene; initData.scene = scene;
initData.doc = this; initData.doc = this;
initData.data = data; initData.data = data;

View File

@ -1415,7 +1415,12 @@ auto VAbstractPattern::GetBackgroundImage(const QUuid &id) const -> VBackgroundP
return GetBackgroundPatternImage(imageElement); return GetBackgroundPatternImage(imageElement);
} }
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wnoexcept")
return {}; return {};
QT_WARNING_POP
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -72,7 +72,13 @@ auto ScaleVectorImage(const QSvgRenderer &renderer) -> QSize
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
auto VBackgroundPatternImage::FromFile(const QString &fileName, bool builtIn) -> VBackgroundPatternImage auto VBackgroundPatternImage::FromFile(const QString &fileName, bool builtIn) -> VBackgroundPatternImage
{ {
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wnoexcept")
VBackgroundPatternImage image; VBackgroundPatternImage image;
QT_WARNING_POP
QMimeType mime = QMimeDatabase().mimeTypeForFile(fileName); QMimeType mime = QMimeDatabase().mimeTypeForFile(fileName);
if (not IsMimeTypeImage(mime)) if (not IsMimeTypeImage(mime))

View File

@ -289,7 +289,13 @@ void VPosition::SaveCandidate(VBestSquare &bestResult, const VLayoutPiece &detai
const qreal depthPosition = m_data.isOriginPaperOrientationPortrait ? boundingRect.y() : boundingRect.x(); const qreal depthPosition = m_data.isOriginPaperOrientationPortrait ? boundingRect.y() : boundingRect.x();
const qreal sidePosition = m_data.isOriginPaperOrientationPortrait ? boundingRect.x() : boundingRect.y(); const qreal sidePosition = m_data.isOriginPaperOrientationPortrait ? boundingRect.x() : boundingRect.y();
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wnoexcept")
VBestSquareResData data; VBestSquareResData data;
QT_WARNING_POP
data.bestSize = size; data.bestSize = size;
data.globalI = globalI; // Edge of global contour data.globalI = globalI; // Edge of global contour
data.detJ = detJ; // Edge of detail data.detJ = detJ; // Edge of detail

View File

@ -109,7 +109,14 @@ private:
QUuid m_id{}; QUuid m_id{};
VAbstractPattern *m_doc; VAbstractPattern *m_doc;
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wnoexcept")
VBackgroundPatternImage m_image{}; VBackgroundPatternImage m_image{};
QT_WARNING_POP
BITransformationType m_tranformationType{BITransformationType::Unknown}; BITransformationType m_tranformationType{BITransformationType::Unknown};
QMap<BIHandleCornerType, QPixmap> m_handlePixmaps{}; QMap<BIHandleCornerType, QPixmap> m_handlePixmaps{};

View File

@ -230,7 +230,13 @@ auto VToolAlongLine::Create(const QPointer<DialogTool> &dialog, VMainGraphicsSce
const QPointer<DialogAlongLine> dialogTool = qobject_cast<DialogAlongLine *>(dialog); const QPointer<DialogAlongLine> dialogTool = qobject_cast<DialogAlongLine *>(dialog);
SCASSERT(not dialogTool.isNull()) SCASSERT(not dialogTool.isNull())
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wnoexcept")
VToolAlongLineInitData initData; VToolAlongLineInitData initData;
QT_WARNING_POP
initData.formula = dialogTool->GetFormula(); initData.formula = dialogTool->GetFormula();
initData.firstPointId = dialogTool->GetFirstPointId(); initData.firstPointId = dialogTool->GetFirstPointId();
initData.secondPointId = dialogTool->GetSecondPointId(); initData.secondPointId = dialogTool->GetSecondPointId();

View File

@ -109,7 +109,13 @@ VToolCurveIntersectAxis *VToolCurveIntersectAxis::Create(const QPointer<DialogTo
const QPointer<DialogCurveIntersectAxis> dialogTool = qobject_cast<DialogCurveIntersectAxis *>(dialog); const QPointer<DialogCurveIntersectAxis> dialogTool = qobject_cast<DialogCurveIntersectAxis *>(dialog);
SCASSERT(not dialogTool.isNull()) SCASSERT(not dialogTool.isNull())
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wnoexcept")
VToolCurveIntersectAxisInitData initData; VToolCurveIntersectAxisInitData initData;
QT_WARNING_POP
initData.formulaAngle = dialogTool->GetAngle(); initData.formulaAngle = dialogTool->GetAngle();
initData.basePointId = dialogTool->GetBasePointId(); initData.basePointId = dialogTool->GetBasePointId();
initData.curveId = dialogTool->getCurveId(); initData.curveId = dialogTool->getCurveId();

View File

@ -99,7 +99,13 @@ VToolPointOfIntersectionCurves *VToolPointOfIntersectionCurves::Create(const QPo
qobject_cast<DialogPointOfIntersectionCurves *>(dialog); qobject_cast<DialogPointOfIntersectionCurves *>(dialog);
SCASSERT(not dialogTool.isNull()) SCASSERT(not dialogTool.isNull())
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wnoexcept")
VToolPointOfIntersectionCurvesInitData initData; VToolPointOfIntersectionCurvesInitData initData;
QT_WARNING_POP
initData.firstCurveId = dialogTool->GetFirstCurveId(); initData.firstCurveId = dialogTool->GetFirstCurveId();
initData.secondCurveId = dialogTool->GetSecondCurveId(); initData.secondCurveId = dialogTool->GetSecondCurveId();
initData.vCrossPoint = dialogTool->GetVCrossPoint(); initData.vCrossPoint = dialogTool->GetVCrossPoint();