Cannot suppress warning -Wstrict-overflow. Completely disable it.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-09-29 19:05:34 +03:00
parent 0adfbb8fb1
commit 4d113db163
2 changed files with 2 additions and 9 deletions

View File

@ -289,7 +289,8 @@ GCC_DEBUG_CXXFLAGS += \
-Wmissing-noreturn \ -Wmissing-noreturn \
-Wpointer-arith \ -Wpointer-arith \
-Wstrict-null-sentinel \ -Wstrict-null-sentinel \
-Wstrict-overflow=5 \ # -Wstrict-overflow=5 \
-Wno-strict-overflow \
-Wundef \ -Wundef \
-Wno-unused \ -Wno-unused \
-ftrapv -ftrapv

View File

@ -29,16 +29,8 @@
#ifndef DIALOGFINALMEASUREMENTS_H #ifndef DIALOGFINALMEASUREMENTS_H
#define DIALOGFINALMEASUREMENTS_H #define DIALOGFINALMEASUREMENTS_H
#include "../vmisc/diagnostic.h"
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wstrict-overflow")
// suppress warning Wstrict-overflow because of method QVector::move()
#include <QDialog> #include <QDialog>
QT_WARNING_POP
#include "../vmisc/vtablesearch.h" #include "../vmisc/vtablesearch.h"
#include "../vpatterndb/vcontainer.h" #include "../vpatterndb/vcontainer.h"
#include "../xml/vpattern.h" #include "../xml/vpattern.h"