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. --- devel.but | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'devel.but') diff --git a/devel.but b/devel.but index af69202..131678c 100644 --- a/devel.but +++ b/devel.but @@ -3296,8 +3296,7 @@ visually activate and deactivate a redo button. \H{midend-serialise} \cw{midend_serialise()} \c void midend_serialise(midend *me, -\c void (*write)(void *ctx, void *buf, int len), -\c void *wctx); +\c void (*write)(void *ctx, const void *buf, int len), void *wctx); Calling this function causes the mid-end to convert its entire internal state into a long ASCII text string, and to pass that -- cgit v1.1