From 279e1cda84ec2a993d8be8faa69680f927774b4e Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 20 Jun 2017 13:30:36 +0300 Subject: [PATCH] Temporary suppress all GCC wanings inside libdxfrw. --HG-- branch : feature --- src/libs/vdxf/warnings.pri | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/libs/vdxf/warnings.pri b/src/libs/vdxf/warnings.pri index 84d1846db..074e23573 100644 --- a/src/libs/vdxf/warnings.pri +++ b/src/libs/vdxf/warnings.pri @@ -10,6 +10,17 @@ unix { QMAKE_CXXFLAGS += -Werror } + # -isystem key works only for headers. In some cases it's not enough. But we can't delete these warnings and + # want them in the global list. Compromise decision is to delete them from the local list. + QMAKE_CXXFLAGS -= \ + -Weffc++ \ + -Wconversion \ + -Wold-style-cast \ + -Wstack-protector \ + -Wswitch-default \ + -Wimplicit-fallthrough \ + -Wfloat-equal + noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer # do nothing } else {