From cabac6f3d0e6a20ae7e927d96dbe05e88b76c624 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 16 Mar 2015 12:33:37 +0200 Subject: [PATCH] GCC warnings. --HG-- branch : release --- src/app/dialogs/app/configpages/configurationpage.cpp | 2 +- src/libs/vpropertyexplorer/vpropertyexplorer.pro | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/app/dialogs/app/configpages/configurationpage.cpp b/src/app/dialogs/app/configpages/configurationpage.cpp index f566a4c7b..514842591 100644 --- a/src/app/dialogs/app/configpages/configurationpage.cpp +++ b/src/app/dialogs/app/configpages/configurationpage.cpp @@ -46,7 +46,7 @@ ConfigurationPage::ConfigurationPage(QWidget *parent) : QWidget(parent), autoSaveCheck(nullptr), autoTime(nullptr), langCombo(nullptr), labelCombo(nullptr), unitCombo(nullptr), osOptionCheck(nullptr), langChanged(false), unitChanged(false), labelLangChanged(false), - sendReportCheck(nullptr) + sendReportCheck(nullptr), askPointDeletionCheck(nullptr) { QGroupBox *saveGroup = SaveGroup(); QGroupBox *langGroup = LangGroup(); diff --git a/src/libs/vpropertyexplorer/vpropertyexplorer.pro b/src/libs/vpropertyexplorer/vpropertyexplorer.pro index 7c85ea983..8cbb9352b 100644 --- a/src/libs/vpropertyexplorer/vpropertyexplorer.pro +++ b/src/libs/vpropertyexplorer/vpropertyexplorer.pro @@ -69,9 +69,14 @@ CONFIG(debug, debug|release){ #Turn on compilers warnings. *-g++{ QMAKE_CXXFLAGS += \ - # Key -isystem disable checking errors in system headers. -isystem "$${OUT_PWD}/$${MOC_DIR}" \ - $$GCC_DEBUG_CXXFLAGS # See Valentina.pri for more details. + # Key -isystem disable checking errors in system headers. + $$GCC_DEBUG_CXXFLAGS \ # See Valentina.pri for more details. + + # -isystem key works only for headers. In some cases it's not enough. But we can't delete this warnings and + # want them in global list. Compromise decision delete them from local list. + QMAKE_CXXFLAGS -= \ + -Wswitch-default #gcc’s 4.8.0 Address Sanitizer #http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/