From a5e4261e552bed35156a1bfaa6aa01163bb2d8b3 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 29 Sep 2017 10:43:47 +0300 Subject: [PATCH] GCC warning. --HG-- branch : develop --- .../valentina/dialogs/dialogfinalmeasurements.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/app/valentina/dialogs/dialogfinalmeasurements.cpp b/src/app/valentina/dialogs/dialogfinalmeasurements.cpp index a2edafc6c..c61d048f4 100644 --- a/src/app/valentina/dialogs/dialogfinalmeasurements.cpp +++ b/src/app/valentina/dialogs/dialogfinalmeasurements.cpp @@ -307,11 +307,17 @@ void DialogFinalMeasurements::MoveUp() return; } +QT_WARNING_PUSH +QT_WARNING_DISABLE_GCC("-Wstrict-overflow") + #if QT_VERSION < QT_VERSION_CHECK(5, 6, 0) Move(m_measurements, row, row-1); #else m_measurements.move(row, row-1); #endif + +QT_WARNING_POP + UpdateTree(); ui->tableWidget->selectRow(row-1); @@ -327,11 +333,17 @@ void DialogFinalMeasurements::MoveDown() return; } +QT_WARNING_PUSH +QT_WARNING_DISABLE_GCC("-Wstrict-overflow") + #if QT_VERSION < QT_VERSION_CHECK(5, 6, 0) Move(m_measurements, row, row+1); #else m_measurements.move(row, row+1); #endif + +QT_WARNING_POP + UpdateTree(); ui->tableWidget->selectRow(row+1);