Changeset - r16409:9a88093d14c8
[Not reviewed]
master
0 1 0
smatz - 14 years ago 2010-11-10 19:54:20
smatz@openttd.org
(svn r21135) -Fix (r19870): silencing gcc 3.3 warnings caused gcc 4.0 to warn
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/table/settings.h
Show inline comments
 
@@ -90,13 +90,13 @@ static bool UpdateClientConfigValues(int
 
 * mechanism, a callback procedure is made available.  You will have to supply the function, which
 
 * will work on a string, one function per setting. And of course, enable the callback param
 
 * on the appropriate macro.
 
 */
 

	
 
#define NSD_GENERAL(name, def, cmd, guiflags, min, max, interval, many, str, proc, load)\
 
	{name, (const void*)(ptrdiff_t)(def), {(byte)cmd}, {(uint16)guiflags}, min, max, interval, many, str, proc, load}
 
	{name, (const void*)(size_t)(def), {(byte)cmd}, {(uint16)guiflags}, min, max, interval, many, str, proc, load}
 

	
 
/* Macros for various objects to go in the configuration file.
 
 * This section is for global variables */
 
#define SDTG_GENERAL(name, sdt_cmd, sle_cmd, type, flags, guiflags, var, length, def, min, max, interval, full, str, proc, from, to)\
 
	{NSD_GENERAL(name, def, sdt_cmd, guiflags, min, max, interval, full, str, proc, NULL), SLEG_GENERAL(sle_cmd, var, type | flags, length, from, to)}
 

	
0 comments (0 inline, 0 general)