From 817a5d5f561a8793540caf08a535f9ae7aaa42c9 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 20 Jul 2016 11:10:23 +0300 Subject: [PATCH] Fixed suppression warnings in Release mode. Used wrong macros. --HG-- branch : develop --- src/app/tape/mapplication.cpp | 4 ++-- src/app/valentina/core/vapplication.cpp | 4 ++-- src/libs/vmisc/vmisc.pro | 5 +---- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/app/tape/mapplication.cpp b/src/app/tape/mapplication.cpp index 0f35cfabe..76eaea126 100644 --- a/src/app/tape/mapplication.cpp +++ b/src/app/tape/mapplication.cpp @@ -84,13 +84,13 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con type = QtWarningMsg; } -#if !defined(V_NO_DEBUG) +#if !defined(V_NO_ASSERT) // I have decided to hide this annoing message for release builds. if ((type == QtWarningMsg) && msg.contains("setGeometryDp: Unable to set geometry")) { type = QtDebugMsg; } -#endif //!defined(V_NO_DEBUG) +#endif //!defined(V_NO_ASSERT) #if defined(Q_OS_MAC) # if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0) && QT_VERSION < QT_VERSION_CHECK(5, 7, 0) diff --git a/src/app/valentina/core/vapplication.cpp b/src/app/valentina/core/vapplication.cpp index a50edb882..bd5ad39ad 100644 --- a/src/app/valentina/core/vapplication.cpp +++ b/src/app/valentina/core/vapplication.cpp @@ -80,13 +80,13 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con type = QtWarningMsg; } -#if !defined(V_NO_DEBUG) +#if !defined(V_NO_ASSERT) // I have decided to hide this annoing message for release builds. if ((type == QtWarningMsg) && msg.contains("setGeometryDp: Unable to set geometry")) { type = QtDebugMsg; } -#endif //!defined(V_NO_DEBUG) +#endif //!defined(V_NO_ASSERT) #if defined(Q_OS_MAC) # if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0) && QT_VERSION < QT_VERSION_CHECK(5, 7, 0) diff --git a/src/libs/vmisc/vmisc.pro b/src/libs/vmisc/vmisc.pro index a674a672f..df48dc12d 100644 --- a/src/libs/vmisc/vmisc.pro +++ b/src/libs/vmisc/vmisc.pro @@ -103,11 +103,8 @@ CONFIG(debug, debug|release){ } noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols - DEFINES += V_NO_DEBUG + # do nothing } else { - noCrashReports{ - DEFINES += V_NO_DEBUG - } !macx:!win32-msvc*{ # Turn on debug symbols in release mode on Unix systems. # On Mac OS X temporarily disabled. TODO: find way how to strip binary file.