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 /saveload.h | |
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 'saveload.h')
-rw-r--r-- | saveload.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/saveload.h b/saveload.h index 86d41f1c5..edbbdc549 100644 --- a/saveload.h +++ b/saveload.h @@ -3,7 +3,7 @@ #include <setjmp.h> -typedef void ChunkSaveLoadProc(); +typedef void ChunkSaveLoadProc(void); typedef void AutolengthProc(void *arg); typedef struct SaveLoadGlobVarList { @@ -26,7 +26,7 @@ typedef struct { } NullStruct; typedef void WriterProc(uint len); -typedef uint ReaderProc(); +typedef uint ReaderProc(void); typedef uint ReferenceToIntProc(void *v, uint t); typedef void *IntToReferenceProc(uint r, uint t); @@ -62,7 +62,7 @@ typedef struct { uint bufsize; FILE *fh; - void (*excpt_uninit)(); + void (*excpt_uninit)(void); const char *excpt_msg; jmp_buf excpt; // used to jump to "exception handler" } SaverLoader; @@ -159,12 +159,12 @@ enum { void SlSetArrayIndex(uint index); -int SlIterateArray(); +int SlIterateArray(void); void SlArray(void *array, uint length, uint conv); void SlObject(void *object, const void *desc); void SlAutolength(AutolengthProc *proc, void *arg); -uint SlGetFieldLength(); -int SlReadByte(); +uint SlGetFieldLength(void); +int SlReadByte(void); void SlSetLength(uint length); void SlWriteByte(byte v); void SlGlobList(const SaveLoadGlobVarList *desc); |