diff options
| author | Eli Zaretskii | 2020-08-23 22:09:39 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2020-08-23 22:09:39 +0300 |
| commit | 2c389455c72250b579f5225b99bc7de0cf435e4a (patch) | |
| tree | be999517e573b20599543585418f1ab7291eb16c | |
| parent | f3e6dd1ce97bb279565465dc1ecce1516f42683e (diff) | |
| download | emacs-2c389455c72250b579f5225b99bc7de0cf435e4a.tar.gz emacs-2c389455c72250b579f5225b99bc7de0cf435e4a.zip | |
Fix more compilation warnings in xdisp.c
* src/xdisp.c (display_mode_element, decode_mode_spec_coding):
Avoid compilation warnings.
| -rw-r--r-- | src/xdisp.c | 6 |
1 files 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, | |||
| 25640 | /* Non-ASCII characters in SPEC should cause mode-line | 25640 | /* Non-ASCII characters in SPEC should cause mode-line |
| 25641 | element be displayed as a multibyte string. */ | 25641 | element be displayed as a multibyte string. */ |
| 25642 | ptrdiff_t nbytes = strlen (spec); | 25642 | ptrdiff_t nbytes = strlen (spec); |
| 25643 | if (multibyte_chars_in_text (spec, nbytes) != nbytes) | 25643 | if (multibyte_chars_in_text ((const unsigned char *)spec, |
| 25644 | nbytes) != nbytes) | ||
| 25644 | multibyte = true; | 25645 | multibyte = true; |
| 25645 | 25646 | ||
| 25646 | switch (mode_line_target) | 25647 | switch (mode_line_target) |
| @@ -26261,7 +26262,8 @@ decode_mode_spec_coding (Lisp_Object coding_system, char *buf, bool eol_flag) | |||
| 26261 | eolvalue = AREF (val, 2); | 26262 | eolvalue = AREF (val, 2); |
| 26262 | 26263 | ||
| 26263 | if (multibyte) | 26264 | if (multibyte) |
| 26264 | buf += CHAR_STRING (XFIXNAT (CODING_ATTR_MNEMONIC (attrs)), buf); | 26265 | buf += CHAR_STRING (XFIXNAT (CODING_ATTR_MNEMONIC (attrs)), |
| 26266 | (unsigned char *) buf); | ||
| 26265 | else | 26267 | else |
| 26266 | *buf++ = ' '; | 26268 | *buf++ = ' '; |
| 26267 | 26269 | ||