summaryrefslogtreecommitdiff
path: root/src/vehiclelist.cpp
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/vehiclelist.cpp
parent9eb6c78a0245317f8dc68ad1034b66019e1bf14f (diff)
downloadopenttd-fece1c57cab1d148e15775f3e10ba474dcfc1360.tar.xz
Codechange: Suppress warnings when asserts are disabled (#8917)
Diffstat (limited to 'src/vehiclelist.cpp')
-rw-r--r--src/vehiclelist.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vehiclelist.cpp b/src/vehiclelist.cpp
index a574d9b81..ea34c443c 100644
--- a/src/vehiclelist.cpp
+++ b/src/vehiclelist.cpp
@@ -54,6 +54,7 @@ bool VehicleListIdentifier::UnpackIfValid(uint32 data)
{
VehicleListIdentifier result;
bool ret = result.UnpackIfValid(data);
+ (void)ret; // assert only
assert(ret);
return result;
}