unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Replace XChar2b with unsigned in all font backends
@ 2019-05-20  8:26 martin rudalics
  2019-05-20 12:05 ` Andy Moreton
  2019-05-20 18:07 ` Alex Gramiak
  0 siblings, 2 replies; 16+ messages in thread
From: martin rudalics @ 2019-05-20  8:26 UTC (permalink / raw)
  To: emacs-devel

After this commit, building master on Windows here produces



   CC       w32term.o
../../src/w32font.c: In function 'w32font_draw':
../../src/w32font.c:708:25: warning: passing argument 6 of 'ExtTextOutW' from incompatible pointer type [-Wincompatible-pointer-types]
         s->char2b + from + i, 1, NULL);
         ~~~~~~~~~~~~~~~~~^~~
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:71,
                  from ../../src/w32font.c:20:
C:/msys64/mingw64/x86_64-w64-mingw32/include/wingdi.h:3347:100: note: expected 'LPCWSTR' {aka 'const short unsigned int *'} but argument is of type 'unsigned int *'
    WINGDIAPI WINBOOL WINAPI ExtTextOutW(HDC hdc,int x,int y,UINT options,CONST RECT *lprect,LPCWSTR lpString,UINT c,CONST INT *lpDx);
                                                                                             ~~~~~~~~^~~~~~~~
../../src/w32font.c:711:57: warning: passing argument 6 of 'ExtTextOutW' from incompatible pointer type [-Wincompatible-pointer-types]
      ExtTextOutW (s->hdc, x, y, options, NULL, s->char2b + from, len, NULL);
                                                ~~~~~~~~~~^~~~~~
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:71,
                  from ../../src/w32font.c:20:
C:/msys64/mingw64/x86_64-w64-mingw32/include/wingdi.h:3347:100: note: expected 'LPCWSTR' {aka 'const short unsigned int *'} but argument is of type 'unsigned int *'
    WINGDIAPI WINBOOL WINAPI ExtTextOutW(HDC hdc,int x,int y,UINT options,CONST RECT *lprect,LPCWSTR lpString,UINT c,CONST INT *lpDx);
                                                                                             ~~~~~~~~^~~~~~~~
   CC       w32xfns.o



and the resulting build is not usable.

martin



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2019-05-22  8:30 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-20  8:26 Replace XChar2b with unsigned in all font backends martin rudalics
2019-05-20 12:05 ` Andy Moreton
2019-05-20 18:14   ` Alex Gramiak
2019-05-20 18:29     ` Andy Moreton
2019-05-20 19:20       ` Eli Zaretskii
2019-05-20 22:52         ` Andy Moreton
2019-05-21  8:00           ` Eli Zaretskii
2019-05-21 11:50             ` Andy Moreton
2019-05-21 12:38               ` Eli Zaretskii
2019-05-20 19:34       ` Alex Gramiak
2019-05-20 18:07 ` Alex Gramiak
2019-05-21  7:33   ` martin rudalics
2019-05-21 21:32     ` Alex Gramiak
2019-05-21 23:04       ` Andy Moreton
2019-05-22  8:30       ` martin rudalics
2019-05-21 11:47   ` Andy Moreton

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).