forked from qt-creator/qt-creator
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: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -229,7 +229,9 @@ int main(int argc, char **argv)
|
|||||||
const int threadCount = QThreadPool::globalInstance()->maxThreadCount();
|
const int threadCount = QThreadPool::globalInstance()->maxThreadCount();
|
||||||
QThreadPool::globalInstance()->setMaxThreadCount(qMax(4, 2 * threadCount));
|
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.
|
setupCrashHandler(); // Display a backtrace once a serious signal is delivered.
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef ENABLE_QT_BREAKPAD
|
#ifdef ENABLE_QT_BREAKPAD
|
||||||
QtSystemExceptionHandler systemExceptionHandler;
|
QtSystemExceptionHandler systemExceptionHandler;
|
||||||
@@ -436,6 +438,8 @@ int main(int argc, char **argv)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
const int r = app.exec();
|
const int r = app.exec();
|
||||||
|
#if defined(Q_OS_LINUX) && !defined(QT_NO_DEBUG)
|
||||||
cleanupCrashHandler();
|
cleanupCrashHandler();
|
||||||
|
#endif
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user