John Marriott wrote:

> On 14-Jan-2019 09:39, Bram Moolenaar wrote:
> > Patch 8.1.0743
> > Problem:    Giving error messages is not flexible.
> > Solution:   Add semsg().  Change argument from "char_u *" to "char *", also
> >              for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes
> >              #3302)  Also make emsg() accept a "char *" argument.  Get rid 
> > of
> >              an enormous number of type casts.
> > Files:          src/blob.c, src/blowfish.c, src/buffer.c, src/channel.c,
> 
> [...]
> 
> After this patch, mingw-64 (gcc 8.2.1) spits out this warning:
> gcc -c -I. -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 
> -DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -DFEAT_GUI_W32 
> -DFEAT_CLIPBOARD -pipe -march=native -Wall -O3 -fomit-frame-pointer 
> -freg-struct-return -s mbyte.c -o gobjnative/mbyte.o
> mbyte.c: In function 'mb_init':
> mbyte.c:563:13: warning: pointer targets in returning 'char_u *' {aka 
> 'unsigned char *'} from a function with return type 'char *' differ in 
> signedness [-Wpointer-sign]
>        return (char_u *)N_("E543: Not a valid codepage");
>               ^
> 
> Also after this patch HP-UX spits out this warning:
>      cc -c -I. -Iproto -DHAVE_CONFIG_H     -O2        -o 
> objects/ex_docmd.o ex_docmd.c
> cc: "ex_docmd.c", line 2293: warning 604: Pointers are not 
> assignment-compatible.
> 
> 
> The attached patches try to fix both warnings.

Thanks!

-- 
hundred-and-one symptoms of being an internet addict:
196. Your computer costs more than your car.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui