emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master a539488: Always make a multibyte string for the frame title (


From: Lars Ingebrigtsen
Subject: Re: master a539488: Always make a multibyte string for the frame title (bug#42904)
Date: Sun, 23 Aug 2020 21:01:57 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

> Silly compiler.  Please try again, I hope I fixed this.

Now the warnings are...  slightly different?  :-)

xdisp.c: In function ‘display_mode_element’:
xdisp.c:25643:36: warning: pointer targets in passing argument 1 of 
‘multibyte_chars_in_text’ differ in signedness [-Wpointer-sign]
25643 |       if (multibyte_chars_in_text (spec, nbytes) != nbytes)
      |                                    ^~~~
      |                                    |
      |                                    const char *
In file included from xdisp.c:439:
lisp.h:3581:43: note: expected ‘const unsigned char *’ but argument is of type 
‘const char *’
 3581 | extern ptrdiff_t multibyte_chars_in_text (const unsigned char *, 
ptrdiff_t);
      |                                           ^~~~~~~~~~~~~~~~~~~~~
xdisp.c: In function ‘decode_mode_spec_coding’:
xdisp.c:26264:62: warning: pointer targets in passing argument 2 of 
‘CHAR_STRING’ differ in signedness [-Wpointer-sign]
26264 |  buf += CHAR_STRING (XFIXNAT (CODING_ATTR_MNEMONIC (attrs)), buf);
      |                                                              ^~~
      |                                                              |
      |                                                              char *
In file included from dispextern.h:25,
                 from composite.h:29,
                 from xdisp.c:441:
character.h:226:36: note: expected ‘unsigned char *’ but argument is of type 
‘char *’
  226 | CHAR_STRING (int c, unsigned char *p)
      |                     ~~~~~~~~~~~~~~~^


-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]