summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2020-12-10 09:39:43 +0000
committerMichael Meeks <michael.meeks@collabora.com>2020-12-10 09:40:17 +0000
commit732ebad9c30d5ee08997346f3a67c3894ec05f46 (patch)
tree705792b02c244056d6f50077390c02522c5aed18
parentSimulate EAGAIN in debug mode, every seventh operation. (diff)
downloadonline-private/mmeeks/eagaintest.tar.gz
online-private/mmeeks/eagaintest.zip
Check ENABLE_DEBUG conditional correctly. private/mmeeks/eagaintest
Avoiding some debug code ending up in the product. Change-Id: If37b2986f134986a33b9dd5b4729b50c56cbc248
-rw-r--r--wsd/DocumentBroker.cpp2
-rw-r--r--wsd/TileCache.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/wsd/DocumentBroker.cpp b/wsd/DocumentBroker.cpp
index d8aa686cdf..f38b52021e 100644
--- a/wsd/DocumentBroker.cpp
+++ b/wsd/DocumentBroker.cpp
@@ -297,7 +297,7 @@ void DocumentBroker::pollThread()
auto lastClipboardHashUpdateTime = std::chrono::steady_clock::now();
const int limit_load_secs =
-#ifdef ENABLE_DEBUG
+#if ENABLE_DEBUG
// paused waiting for a debugger to attach
// ignore load time out
std::getenv("PAUSEFORDEBUGGER") ? -1 :
diff --git a/wsd/TileCache.cpp b/wsd/TileCache.cpp
index 27e05d7433..980a06f980 100644
--- a/wsd/TileCache.cpp
+++ b/wsd/TileCache.cpp
@@ -562,7 +562,7 @@ size_t TileCache::itemCacheSize(const Tile &tile)
void TileCache::assertCacheSize()
{
-#ifdef ENABLE_DEBUG
+#if ENABLE_DEBUG
size_t recalcSize = 0;
for (const auto& it : _cache)
{