From fe1b91ac49cc2f4cd07801535dc19103a8ebeb70 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 13 Sep 2008 18:25:19 +0000 Subject: 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] --- slant.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'slant.c') diff --git a/slant.c b/slant.c index 000d880..c3b9f17 100644 --- a/slant.c +++ b/slant.c @@ -1835,7 +1835,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 = 2 * BORDER + params->w * TILESIZE + 1; *y = 2 * BORDER + params->h * TILESIZE + 1; -- cgit v1.1