From: Eli Zaretskii Date: Sun, 23 Aug 2020 19:09:39 +0000 (+0300) Subject: Fix more compilation warnings in xdisp.c X-Git-Tag: emacs-28.0.90~6440 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2c389455c72250b579f5225b99bc7de0cf435e4a;p=emacs.git Fix more compilation warnings in xdisp.c * src/xdisp.c (display_mode_element, decode_mode_spec_coding): Avoid compilation warnings. --- diff --git a/src/xdisp.c b/src/xdisp.c index a6706b00c3c..ed1d248990c 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -25640,7 +25640,8 @@ display_mode_element (struct it *it, int depth, int field_width, int precision, /* Non-ASCII characters in SPEC should cause mode-line element be displayed as a multibyte string. */ ptrdiff_t nbytes = strlen (spec); - if (multibyte_chars_in_text (spec, nbytes) != nbytes) + if (multibyte_chars_in_text ((const unsigned char *)spec, + nbytes) != nbytes) multibyte = true; switch (mode_line_target) @@ -26261,7 +26262,8 @@ decode_mode_spec_coding (Lisp_Object coding_system, char *buf, bool eol_flag) eolvalue = AREF (val, 2); if (multibyte) - buf += CHAR_STRING (XFIXNAT (CODING_ATTR_MNEMONIC (attrs)), buf); + buf += CHAR_STRING (XFIXNAT (CODING_ATTR_MNEMONIC (attrs)), + (unsigned char *) buf); else *buf++ = ' ';