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 /settings_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 'settings_gui.c')
-rw-r--r-- | settings_gui.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/settings_gui.c b/settings_gui.c index cb7eb0ead..44998ba6f 100644 --- a/settings_gui.c +++ b/settings_gui.c @@ -17,7 +17,7 @@ static uint32 _difficulty_click_b; static byte _difficulty_timeout; extern const StringID _currency_string_list[]; -extern uint GetMaskOfAllowedCurrencies(); +extern uint GetMaskOfAllowedCurrencies(void); static const StringID _distances_dropdown[] = { STR_0139_IMPERIAL_MILES, @@ -55,7 +55,7 @@ static StringID *BuildDynamicDropdown(StringID base, int num) return buf; } -static int GetCurRes() +static int GetCurRes(void) { int i; for(i = 0; i != _num_resolutions; i++) @@ -269,7 +269,7 @@ static const WindowDesc _game_options_desc = { }; -void ShowGameOptions() +void ShowGameOptions(void) { DeleteWindowById(WC_GAME_OPTIONS, 0); AllocateWindowDesc(&_game_options_desc); @@ -328,7 +328,7 @@ void SetDifficultyLevel(int mode, GameOptions *gm_opt) } } -extern void StartupEconomy(); +extern void StartupEconomy(void); enum { GAMEDIFF_WND_TOP_OFFSET = 45, @@ -506,7 +506,7 @@ static const WindowDesc _game_difficulty_desc = { GameDifficultyWndProc }; -void ShowGameDifficulty() +void ShowGameDifficulty(void) { DeleteWindowById(WC_GAME_OPTIONS, 0); /* copy current settings to temporary holding place @@ -715,7 +715,7 @@ static const PatchPage _patches_page[] = { {_patches_ai, lengthof(_patches_ai) }, }; -extern uint GetCurrentCurrencyRate(); +extern uint GetCurrentCurrencyRate(void); static int32 ReadPE(const PatchEntry*pe) { @@ -1154,7 +1154,7 @@ static const WindowDesc _patches_selection_desc = { PatchesSelectionWndProc, }; -void ShowPatchesSelection() +void ShowPatchesSelection(void) { DeleteWindowById(WC_GAME_OPTIONS, 0); AllocateWindowDesc(&_patches_selection_desc); @@ -1281,7 +1281,7 @@ static const WindowDesc _newgrf_desc = { NewgrfWndProc, }; -void ShowNewgrf() +void ShowNewgrf(void) { Window *w; DeleteWindowById(WC_GAME_OPTIONS, 0); @@ -1509,7 +1509,7 @@ static const WindowDesc _cust_currency_desc = { CustCurrencyWndProc, }; -void ShowCustCurrency() +void ShowCustCurrency(void) { Window *w; |