Cesar Romani wrote:

> I'm compiling vim on Windows 7 with MinGW-W64, gcc 7.2.0.
> I get some warnings:
> 
> --------------------
> gcc -c -Iproto -DWIN32 [...] -o gobjZi686/terminal.o
> terminal.c: In function 'term_and_job_init':
> terminal.c:5504:30: warning: passing argument 2 of 
> 'build_argv_from_string' from  incompatible pointer type 
> [-Wincompatible-pointer-types]
>    build_argv_from_string(cmd, &job->jv_argv, &argc);
>                                ^
> In file included from proto.h:143:0,
>                   from vim.h:2113,
>                   from terminal.c:62:
> proto/misc2.pro:114:5: note: expected 'char ***' but argument is of type 
> 'char_u  *** {aka unsigned char ***}'
>   int build_argv_from_string(char_u *cmd, char ***argv, int *argc);
>       ^~~~~~~~~~~~~~~~~~~~~~
> terminal.c:5510:44: warning: passing argument 2 of 
> 'build_argv_from_list' from i ncompatible pointer type 
> [-Wincompatible-pointer-types]
>    build_argv_from_list(argvar->vval.v_list, &job->jv_argv, &argc);
>                                              ^
> In file included from proto.h:143:0,
>                   from vim.h:2113,
>                   from terminal.c:62:
> proto/misc2.pro:115:5: note: expected 'char ***' but argument is of type 
> 'char_u  *** {aka unsigned char ***}'
>   int build_argv_from_list(list_T *l, char ***argv, int *argc);
>       ^~~~~~~~~~~~~~~~~~~~
> --------------------

Thanks.  I'll change the type of jv_argv.

-- 
Shaw's Principle: Build a system that even a fool can use, and
only a fool will want to use it.

 /// 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