(svn r13351) -Codechange: disable warnings about unused variable for builds without asserts

This commit is contained in:
smatz
2008-06-01 15:08:14 +00:00
parent 10d6f6c5b8
commit ed462507b2
6 changed files with 12 additions and 27 deletions

View File

@@ -1639,11 +1639,7 @@ HouseZonesBits GetTownRadiusGroup(const Town *t, TileIndex tile)
*/
static inline void ClearMakeHouseTile(TileIndex tile, TownID tid, byte counter, byte stage, HouseID type, byte random_bits)
{
#if !defined(NDEBUG) || defined(WITH_ASSERT)
CommandCost cc =
#endif /* !defined(NDEBUG) || defined(WITH_ASSERT) */
DoCommand(tile, 0, 0, DC_EXEC | DC_AUTO | DC_NO_WATER, CMD_LANDSCAPE_CLEAR);
CommandCost cc = DoCommand(tile, 0, 0, DC_EXEC | DC_AUTO | DC_NO_WATER, CMD_LANDSCAPE_CLEAR);
assert(CmdSucceeded(cc));