Since the lack of this has caused portability issues in the past:

add "-ansi -pedantic" to the main Unix makefile, and clean up a few
minor problems pointed out thereby.

[originally from svn r8175]
This commit is contained in:
Simon Tatham
2008-09-13 18:25:19 +00:00
parent acf5c55d35
commit fe1b91ac49
6 changed files with 26 additions and 14 deletions

View File

@ -1597,7 +1597,8 @@ static void game_compute_size(game_params *params, int tilesize,
int *x, int *y)
{
/* fool the macros */
struct dummy { int tilesize; } dummy = { tilesize }, *ds = &dummy;
struct dummy { int tilesize; } dummy, *ds = &dummy;
dummy.tilesize = tilesize;
*x = params->w * TILESIZE + 2*BORDER;
*y = params->h * TILESIZE + 2*BORDER;