diff options
author | tron <tron@openttd.org> | 2005-01-22 20:23:18 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-22 20:23:18 +0000 |
commit | 189ca7370762dca088a13d08ccb035e364758abb (patch) | |
tree | f77535f8809840126757131b192e611f6d912bdf /rail_gui.c | |
parent | 7984a9a5007f4bdf1107cdf646c42e3e137f65cf (diff) | |
download | openttd-189ca7370762dca088a13d08ccb035e364758abb.tar.xz |
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
Diffstat (limited to 'rail_gui.c')
-rw-r--r-- | rail_gui.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/rail_gui.c b/rail_gui.c index c7ad76405..bd6f37990 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -26,9 +26,9 @@ struct { static void HandleStationPlacement(uint start, uint end); -static void ShowBuildTrainDepotPicker(); -static void ShowBuildWaypointPicker(); -static void ShowStationBuilder(); +static void ShowBuildTrainDepotPicker(void); +static void ShowBuildWaypointPicker(void); +static void ShowStationBuilder(void); typedef void OnButtonClick(Window *w); @@ -322,7 +322,7 @@ static void DoRailroadTrack(int mode) // This function is more or less a hack because DoRailroadTrack() would otherwise screw up -static void SwapSelection() +static void SwapSelection(void) { TileHighlightData *thd = &_thd; Point pt = thd->selstart; @@ -332,7 +332,7 @@ static void SwapSelection() } -static void HandleAutodirPlacement() +static void HandleAutodirPlacement(void) { TileHighlightData *thd = &_thd; int bit; @@ -865,7 +865,7 @@ static const WindowDesc _station_builder_desc = { StationBuildWndProc }; -static void ShowStationBuilder() +static void ShowStationBuilder(void) { AllocateWindowDesc(&_station_builder_desc); } @@ -932,7 +932,7 @@ static const WindowDesc _build_depot_desc = { BuildTrainDepotWndProc }; -static void ShowBuildTrainDepotPicker() +static void ShowBuildTrainDepotPicker(void) { AllocateWindowDesc(&_build_depot_desc); } @@ -1007,7 +1007,7 @@ static const WindowDesc _build_waypoint_desc = { BuildWaypointWndProc }; -static void ShowBuildWaypointPicker() +static void ShowBuildWaypointPicker(void) { Window *w = AllocateWindowDesc(&_build_waypoint_desc); w->hscroll.cap = 5; @@ -1015,7 +1015,7 @@ static void ShowBuildWaypointPicker() } -void InitializeRailGui() +void InitializeRailGui(void) { _build_depot_direction = 3; _railstation.numtracks = 1; |