diff --git a/qbs/modules/buildconfig/buildconfig.qbs b/qbs/modules/buildconfig/buildconfig.qbs index 357e9b1a5..3c1db29d5 100644 --- a/qbs/modules/buildconfig/buildconfig.qbs +++ b/qbs/modules/buildconfig/buildconfig.qbs @@ -711,6 +711,7 @@ Module { "-Wall", "-Wno-pragmas", "-Wno-error=strict-overflow", + "-Wno-strict-overflow", "-Wextra" ) diff --git a/src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp b/src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp index af2ee550b..c02e2035c 100644 --- a/src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp +++ b/src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp @@ -1087,7 +1087,8 @@ void DialogSeamAllowance::NodeChanged(int index) const int nodeIndex = piece.GetPath().indexOfNode(uiTabPaths->comboBoxNodes->currentData().toUInt()); if (nodeIndex != -1) { - const VPieceNode &node = piece.GetPath().at(nodeIndex); + const VPiecePath &path = piece.GetPath(); + const VPieceNode &node = path.at(nodeIndex); // Seam alowance before uiTabPaths->plainTextEditFormulaWidthBefore->setEnabled(true); @@ -1192,7 +1193,8 @@ void DialogSeamAllowance::PassmarkChanged(int index) return; } - const VPieceNode &node = piece.GetPath().at(nodeIndex); + const VPiecePath &path = piece.GetPath(); + const VPieceNode &node = path.at(nodeIndex); InitPassmarkLengthFormula(node); InitPassmarkWidthFormula(node);