mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user