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. --- slant.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'slant.c') diff --git a/slant.c b/slant.c index 7fe5a6a..3fd6611 100644 --- a/slant.c +++ b/slant.c @@ -413,7 +413,7 @@ static void fill_square(int w, int h, int x, int y, int v, } static int vbitmap_clear(int w, int h, struct solver_scratch *sc, - int x, int y, int vbits, char *reason, ...) + int x, int y, int vbits, const char *reason, ...) { int done_something = FALSE; int vbit; @@ -734,7 +734,7 @@ static int slant_solve(int w, int h, const signed char *clues, int fs, bs, v; int c1, c2; #ifdef SOLVER_DIAGNOSTICS - char *reason = ""; + const char *reason = ""; #endif if (soln[y*w+x]) -- cgit v1.1