diff options
author | Darkvater <Darkvater@openttd.org> | 2006-04-03 18:12:42 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-04-03 18:12:42 +0000 |
commit | 12cfa5526b5b0f935763cd94b392d3b250c92e9d (patch) | |
tree | e90bc212543bc19fb594658db62e4f0282466060 | |
parent | b02fc3b62b5d117db779f699d216d1ae5741705d (diff) | |
download | openttd-12cfa5526b5b0f935763cd94b392d3b250c92e9d.tar.xz |
(svn r4266) - Fix: compile warning on VS2005 (not all control paths return a value)
-rw-r--r-- | water_cmd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/water_cmd.c b/water_cmd.c index 5821876f2..a3fc115b7 100644 --- a/water_cmd.c +++ b/water_cmd.c @@ -318,7 +318,10 @@ static int32 ClearTile_Water(TileIndex tile, byte flags) if (flags & DC_AUTO) return_cmd_error(STR_2004_BUILDING_MUST_BE_DEMOLISHED); return RemoveShipDepot(tile, flags); + default: NOT_REACHED(); } + + return 0; // useless but silences warning } // return true if a tile is a water tile. |