From: Simon Tatham Date: Sun, 1 Oct 2017 12:52:16 +0000 (+0100) Subject: Make newgame_undo_buf 'char *', not 'void *'. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=sgt-puzzles.git;a=commitdiff_plain;h=8ea15f3b3525d2ef5341f8122871c4f0ff77260a;ds=sidebyside Make newgame_undo_buf 'char *', not 'void *'. This fixes a compile error under -pedantic at the point where we do pointer arithmetic on it. --- diff --git a/midend.c b/midend.c index 2f09bb5..93334f6 100644 --- a/midend.c +++ b/midend.c @@ -63,7 +63,7 @@ struct midend { int nstates, statesize, statepos; struct midend_state_entry *states; - void *newgame_undo_buf; + char *newgame_undo_buf; int newgame_undo_len, newgame_undo_size; game_params *params, *curparams;