Fixed suppression warnings in Release mode.
Used wrong macros. --HG-- branch : develop
This commit is contained in:
parent
ce50203d57
commit
817a5d5f56
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user