Yegappan wrote:

> When building the latest Vim on MS-Windows using mingw GCC, I see
> the following warning messages:
> 
> In file included from ex_getln.c:14:0:
> ex_getln.c: In function 'handle_viminfo_history':
> vim.h:1665:45: warning: 'len' may be used uninitialized in this function 
> [-Wmayb
> e-uninitialized]
>  #  define mch_memmove(to, from, len) memmove(to, from, len)
>                                              ^
> ex_getln.c:6273:12: note: 'len' was declared here
>      long_u len;
>             ^

I'll fix that.

> getchar.c: In function 'check_map':
> getchar.c:5213:7: warning: assuming signed overflow does not occur when 
> assuming
>  that (X - c) <= X is always true [-Wstrict-overflow]
>     if (len > mp->m_keylen - 3)
>        ^

This requires someone to try out what makes the compiler shut up.

> os_win32.c: In function 'read_console_input.constprop.23':
> os_win32.c:298:28: warning: array subscript is above array bounds 
> [-Warray-bound
> s]
>     s_irCache[i] = s_irCache[i + 1];
>                             ^

Looks like a compiler bug.

> undo.c: In function 'u_save_cursor':
> undo.c:270:6: warning: assuming signed overflow does not occur when assuming 
> tha
> t (X - c) > X is always false [-Wstrict-overflow]
>       || top >= bot

Another another one to try something to shut up the compiler.

-- 
>From "know your smileys":
 @:-()  Elvis Presley

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