From 955b0148e9b98bafed0b691b466088480a04a46d Mon Sep 17 00:00:00 2001 From: dismine Date: Wed, 24 Dec 2014 11:54:56 +0200 Subject: [PATCH] Disable SCASSERT function if debugging is not set. --HG-- branch : develop --- src/app/app.pro | 2 +- src/libs/ifc/ifc.pro | 2 +- src/libs/ifc/ifcdef.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/app.pro b/src/app/app.pro index 2e331055c..4a352dff5 100644 --- a/src/app/app.pro +++ b/src/app/app.pro @@ -107,7 +107,7 @@ CONFIG(debug, debug|release){ DEFINES += "LOC_REV=0" }else{ # Release mode - + DEFINES += V_NO_ASSERT !unix:*-g++{ QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll } diff --git a/src/libs/ifc/ifc.pro b/src/libs/ifc/ifc.pro index 721b84034..8981fa650 100644 --- a/src/libs/ifc/ifc.pro +++ b/src/libs/ifc/ifc.pro @@ -78,7 +78,7 @@ CONFIG(debug, debug|release){ }else{ # Release mode - + DEFINES += V_NO_ASSERT !unix:*-g++{ QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll } diff --git a/src/libs/ifc/ifcdef.h b/src/libs/ifc/ifcdef.h index f80e9bbf5..616772c5f 100644 --- a/src/libs/ifc/ifcdef.h +++ b/src/libs/ifc/ifcdef.h @@ -59,7 +59,7 @@ static const quint32 null_id = 0; * 4. Continue to debug after failed assertion on Linux? [C/C++] - * https://stackoverflow.com/questions/1721543/continue-to-debug-after-failed-assertion-on-linux-c-c */ -#ifndef QT_NO_DEBUG +#ifndef V_NO_ASSERT #ifdef Q_OS_WIN32 #ifdef Q_CC_MSVC #define SCASSERT(cond) \