aboutsummaryrefslogtreecommitdiff
path: root/unfinished
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2008-09-13 18:25:19 +0000
committerSimon Tatham <anakin@pobox.com>2008-09-13 18:25:19 +0000
commitfe1b91ac49cc2f4cd07801535dc19103a8ebeb70 (patch)
treee89b7747911378cf8387c58f50e50648a4e58469 /unfinished
parentacf5c55d355b49fec8fb5376737d606be0cd8d4f (diff)
downloadpuzzles-fe1b91ac49cc2f4cd07801535dc19103a8ebeb70.zip
puzzles-fe1b91ac49cc2f4cd07801535dc19103a8ebeb70.tar.gz
puzzles-fe1b91ac49cc2f4cd07801535dc19103a8ebeb70.tar.bz2
puzzles-fe1b91ac49cc2f4cd07801535dc19103a8ebeb70.tar.xz
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]
Diffstat (limited to 'unfinished')
-rw-r--r--unfinished/slide.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/unfinished/slide.c b/unfinished/slide.c
index af8f210..cc341b8 100644
--- a/unfinished/slide.c
+++ b/unfinished/slide.c
@@ -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;