summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-09-27 08:53:51 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-09-27 22:37:07 +0200
commit26e76ada0cb87550e5bac56006da851cf1279a02 (patch)
tree352cb0c6018e2d1a142e02690bcbbc315ba4562b /comphelper
parenta6a4fa526b8ad19ff6d44a89ee56d4268c8e90be (diff)
-Werror=unused-variable (--enable-debug --disable-assert-always-abort)
...found by <https://ci.libreoffice.org//job/lo_tb_random_config_linux/1504/> Change-Id: I8ebbe48cdbbdf378731bbc4548031d8799d91532 Reviewed-on: https://gerrit.libreoffice.org/61023 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/threadpool.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/misc/threadpool.cxx b/comphelper/source/misc/threadpool.cxx
index fc9b2b3e5404..e66d1d18f24e 100644
--- a/comphelper/source/misc/threadpool.cxx
+++ b/comphelper/source/misc/threadpool.cxx
@@ -306,7 +306,7 @@ void ThreadTaskTag::waitUntilDone()
std::unique_lock< std::mutex > aGuard( maMutex );
while( mnTasksWorking > 0 )
{
-#ifdef DBG_UTIL
+#if defined DBG_UTIL && !defined NDEBUG
// 3 minute timeout in debug mode so our tests fail sooner rather than later
std::cv_status result = maTasksComplete.wait_for(
aGuard, std::chrono::seconds( 3 * 60 ));