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. --- inertia.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'inertia.c') diff --git a/inertia.c b/inertia.c index 6c64fc0..ad58bd2 100644 --- a/inertia.c +++ b/inertia.c @@ -738,7 +738,8 @@ static char *solve_game(const game_state *state, const game_state *currstate, int *unvisited; int circuitlen, circuitsize; int head, tail, pass, i, j, n, x, y, d, dd; - char *err, *soln, *p; + const char *err; + char *soln, *p; /* * Before anything else, deal with the special case in which -- cgit v1.1