summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-04-01 11:16:19 +0200
committerGitHub <noreply@github.com>2021-04-01 11:16:19 +0200
commitfece1c57cab1d148e15775f3e10ba474dcfc1360 (patch)
tree864829048f995a13c2ada0a6f731404a7de0bab7 /src/misc
parent9eb6c78a0245317f8dc68ad1034b66019e1bf14f (diff)
downloadopenttd-fece1c57cab1d148e15775f3e10ba474dcfc1360.tar.xz
Codechange: Suppress warnings when asserts are disabled (#8917)
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/hashtable.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/misc/hashtable.hpp b/src/misc/hashtable.hpp
index ee6b88234..c7bb600da 100644
--- a/src/misc/hashtable.hpp
+++ b/src/misc/hashtable.hpp
@@ -240,6 +240,7 @@ public:
void Pop(Titem_ &item)
{
bool ret = TryPop(item);
+ (void)ret; // assert only
assert(ret);
}