Fixed suppression warnings in Release mode.

Used wrong macros.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-07-20 11:10:23 +03:00
parent ce50203d57
commit 817a5d5f56
3 changed files with 5 additions and 8 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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.