# HG changeset patch # User Darkvater # Date 1144087962 0 # Node ID 3bc35b8a545c261a77d864d759869f2cba7f2d43 # Parent f299c6f48763f5887e4ce6864959edd606bb0ee4 (svn r4266) - Fix: compile warning on VS2005 (not all control paths return a value) diff -r f299c6f48763 -r 3bc35b8a545c water_cmd.c --- a/water_cmd.c Mon Apr 03 18:11:42 2006 +0000 +++ b/water_cmd.c Mon Apr 03 18:12:42 2006 +0000 @@ -318,7 +318,10 @@ 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.