mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-18 12:09:10 +00:00
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
This commit is contained in:
8
unix.c
8
unix.c
@@ -34,7 +34,7 @@ static char *_fios_scn_path;
|
||||
static FiosItem *_fios_items;
|
||||
static int _fios_count, _fios_alloc;
|
||||
|
||||
static FiosItem *FiosAlloc()
|
||||
static FiosItem *FiosAlloc(void)
|
||||
{
|
||||
if (_fios_count == _fios_alloc) {
|
||||
_fios_alloc += 256;
|
||||
@@ -243,7 +243,7 @@ FiosItem *FiosGetScenarioList(int *num, int mode)
|
||||
|
||||
|
||||
// Free the list of savegames
|
||||
void FiosFreeSavegameList()
|
||||
void FiosFreeSavegameList(void)
|
||||
{
|
||||
free(_fios_items);
|
||||
_fios_items = NULL;
|
||||
@@ -370,7 +370,7 @@ const DriverDesc _music_driver_descs[] = {
|
||||
|
||||
/* GetOSVersion returns the minimal required version of OS to be able to use that driver.
|
||||
Not needed for *nix. */
|
||||
byte GetOSVersion()
|
||||
byte GetOSVersion(void)
|
||||
{
|
||||
return 2; // any arbitrary number bigger than 0
|
||||
// numbers lower than 2 breaks default music selection on mac
|
||||
@@ -451,7 +451,7 @@ int CDECL main(int argc, char* argv[])
|
||||
return ttd_main(argc, argv);
|
||||
}
|
||||
|
||||
void DeterminePaths()
|
||||
void DeterminePaths(void)
|
||||
{
|
||||
char *s;
|
||||
|
||||
|
Reference in New Issue
Block a user