From 2c389455c72250b579f5225b99bc7de0cf435e4a Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 23 Aug 2020 22:09:39 +0300 Subject: [PATCH] Fix more compilation warnings in xdisp.c * src/xdisp.c (display_mode_element, decode_mode_spec_coding): Avoid compilation warnings. --- src/xdisp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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++ = ' '; -- 2.39.2