Christian wrote:

> I see the following warning when build on Windows:
> ,----https://ci.appveyor.com/project/chrisbra/vim/build/5120/job/0brfiy6bvynbw351#L469
> | terminal.c(3776) : warning C4267: 'initializing' : conversion from 'size_t' 
> to 'int', possible loss of data
> `----
> 
> This patch fixes it:
> diff --git a/src/terminal.c b/src/terminal.c
> index 0d035ff96..e29aaeea3 100644
> --- a/src/terminal.c
> +++ b/src/terminal.c
> @@ -3773,7 +3773,7 @@ term_load_dump(typval_T *argvars, typval_T *rettv, int 
> do_diff)
> 
>      if (opt.jo_term_name == NULL)
>      {
> -       int len = STRLEN(fname1) + 12;
> +       size_t len = STRLEN(fname1) + 12;
> 
>         fname_tofree = alloc(len);
>         if (fname_tofree != NULL)

Thanks.  But I think then we need "(int)" in the call to alloc().

> Also there are a couple of libvterm related warnings like this:
> libvterm/src/pen.c: In function 'vterm_state_newpen':
> libvterm/src/pen.c:164:1: warning: visibility attribute not supported in this 
> configuration; ignored [-Wattributes]
>  }
> 
> But I haven't yet looked at those.

Yeah, I've seen those too.  Not sure how to avoid those without
diverting from the original libvterm too much.

-- 
On the other hand, you have different fingers.
                                      -- Steven Wright

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