summaryrefslogtreecommitdiff
path: root/strings.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-22 20:23:18 +0000
committertron <tron@openttd.org>2005-01-22 20:23:18 +0000
commit189ca7370762dca088a13d08ccb035e364758abb (patch)
treef77535f8809840126757131b192e611f6d912bdf /strings.c
parent7984a9a5007f4bdf1107cdf646c42e3e137f65cf (diff)
downloadopenttd-189ca7370762dca088a13d08ccb035e364758abb.tar.xz
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/strings.c b/strings.c
index b5f6956d5..c9fa18196 100644
--- a/strings.c
+++ b/strings.c
@@ -114,14 +114,14 @@ void InjectDparam(int amount)
}
-int32 GetParamInt32()
+int32 GetParamInt32(void)
{
int32 result = GetDParam(0);
memmove(&_decode_parameters[0], &_decode_parameters[1], sizeof(uint32) * (lengthof(_decode_parameters)-1));
return result;
}
-static int64 GetParamInt64()
+static int64 GetParamInt64(void)
{
int64 result = GetDParam(0) + ((uint64)GetDParam(1) << 32);
memmove(&_decode_parameters[0], &_decode_parameters[2], sizeof(uint32) * (lengthof(_decode_parameters)-2));
@@ -129,21 +129,21 @@ static int64 GetParamInt64()
}
-int GetParamInt16()
+int GetParamInt16(void)
{
int result = (int16)GetDParam(0);
memmove(&_decode_parameters[0], &_decode_parameters[1], sizeof(uint32) * (lengthof(_decode_parameters)-1));
return result;
}
-int GetParamInt8()
+int GetParamInt8(void)
{
int result = (int8)GetDParam(0);
memmove(&_decode_parameters[0], &_decode_parameters[1], sizeof(uint32) * (lengthof(_decode_parameters)-1));
return result;
}
-int GetParamUint16()
+int GetParamUint16(void)
{
int result = GetDParam(0);
memmove(&_decode_parameters[0], &_decode_parameters[1], sizeof(uint32) * (lengthof(_decode_parameters)-1));
@@ -259,7 +259,8 @@ static byte *FormatMonthAndYear(byte *buff, uint16 number)
return FormatNoCommaNumber(buff, ymd.year + MAX_YEAR_BEGIN_REAL);
}
-uint GetCurrentCurrencyRate() {
+uint GetCurrentCurrencyRate(void)
+{
return (&_currency_specs[_opt.currency])->rate;
}
@@ -777,7 +778,7 @@ bool ReadLanguagePack(int lang_index) {
}
// make a list of the available language packs. put the data in _dynlang struct.
-void InitializeLanguagePacks()
+void InitializeLanguagePacks(void)
{
DynamicLanguages *dl = &_dynlang;
int i, j, n, m,def;