From a58c1b216bb1d4547f7b2ef2703fe2d0cd3b5cac Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 1 Oct 2017 14:45:12 +0100 Subject: Make the code base clean under -Wwrite-strings. I've also added that warning option and -Werror to the build script, so that I'll find out if I break this property in future. --- samegame.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'samegame.c') diff --git a/samegame.c b/samegame.c index 8b31062..d7d0676 100644 --- a/samegame.c +++ b/samegame.c @@ -1108,7 +1108,8 @@ static void game_changed_state(game_ui *ui, const game_state *oldstate, static char *sel_movedesc(game_ui *ui, const game_state *state) { int i; - char *ret, *sep, buf[80]; + char *ret, buf[80]; + const char *sep; int retlen, retsize; retsize = 256; -- cgit v1.1