Commit fa876313 authored by Thiago Macieira's avatar Thiago Macieira Committed by hjk
Browse files

Fix compilation: don't call functions you didn't compile

These functions are only present on debug builds, on Linux. So don't
call them unless this is a debug build, on Linux.

Change-Id: I180c4a15fbfec15c585e4a8819a43065dba1e90c
Reviewed-by: default avatarhjk <>
parent 3d9e4928
......@@ -229,7 +229,9 @@ int main(int argc, char **argv)
const int threadCount = QThreadPool::globalInstance()->maxThreadCount();
QThreadPool::globalInstance()->setMaxThreadCount(qMax(4, 2 * threadCount));
#if defined(Q_OS_LINUX) && !defined(QT_NO_DEBUG)
setupCrashHandler(); // Display a backtrace once a serious signal is delivered.
QtSystemExceptionHandler systemExceptionHandler;
......@@ -436,6 +438,8 @@ int main(int argc, char **argv)
const int r = app.exec();
#if defined(Q_OS_LINUX) && !defined(QT_NO_DEBUG)
return r;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment