1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-20 21:19:10 +00:00

Codechange: Suppress warnings when asserts are disabled

This commit is contained in:
glx22
2022-12-30 00:50:10 +01:00
committed by Loïc Guilloux
parent ffc1f7ce56
commit 012fd2be0d
2 changed files with 2 additions and 2 deletions

View File

@@ -538,7 +538,7 @@ void SetupEngines()
_engine_pool.CleanPool();
assert(_engine_mngr.size() >= _engine_mngr.NUM_DEFAULT_ENGINES);
uint index = 0;
[[maybe_unused]] uint index = 0;
for (const EngineIDMapping &eid : _engine_mngr) {
/* Assert is safe; there won't be more than 256 original vehicles
* in any case, and we just cleaned the pool. */