From: Bruno Haible Date: Sun, 6 Sep 2020 21:23:58 +0000 (+0200) Subject: Fix "warning: cast from 'const void *' to 'char *' drops const qualifier". X-Git-Tag: v0.21.1~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f4b9a0dda329e415e33f4b035da19f24a765139;p=thirdparty%2Fgettext.git Fix "warning: cast from 'const void *' to 'char *' drops const qualifier". * libtextstyle/gnulib-local/lib/html-ostream.oo.c (html_ostream::write_mem): Add 'const'. --- diff --git a/libtextstyle/gnulib-local/lib/html-ostream.oo.c b/libtextstyle/gnulib-local/lib/html-ostream.oo.c index 07e436a13..3c6bfbbc9 100644 --- a/libtextstyle/gnulib-local/lib/html-ostream.oo.c +++ b/libtextstyle/gnulib-local/lib/html-ostream.oo.c @@ -1,5 +1,5 @@ /* Output stream that produces HTML output. - Copyright (C) 2006-2009, 2019 Free Software Foundation, Inc. + Copyright (C) 2006-2009, 2019-2020 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -178,7 +178,7 @@ html_ostream::write_mem (html_ostream_t stream, const void *data, size_t len) if (n > 0) { memcpy (inbuffer + inbufcount, data, n); - data = (char *) data + n; + data = (const char *) data + n; inbufcount += n; len -= n; }