(svn r4266) - Fix: compile warning on VS2005 (not all control paths return a value)
authorDarkvater
Mon, 03 Apr 2006 18:12:42 +0000
changeset 3436 3bc35b8a545c
parent 3435 f299c6f48763
child 3437 2768c018e5f7
(svn r4266) - Fix: compile warning on VS2005 (not all control paths return a value)
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.