Hi Bram,

On May 23, 3:08 am, Bram Moolenaar <[email protected]> wrote:
> Patch 7.2.186
> Problem:    Some more compiler warnings when using gcc -Wextra.
> Solution:   Now with the intended if_tcl.c changes.
> Files:      src/if_tcl.c
>
> *** ../vim-7.2.185/src/if_tcl.c 2007-05-10 20:55:34.000000000 +0200
> --- src/if_tcl.c        2009-05-22 15:29:53.000000000 +0200
...

> *** 1691,1697 ****
>       NULL,   /* set option */
>       NULL,   /* get option */
>       channel_watch,
> !     channel_gethandle
>   };
>
>   /**********************************
> --- 1679,1692 ----
>       NULL,   /* set option */
>       NULL,   /* get option */
>       channel_watch,
> !     channel_gethandle,
> !     NULL,
> !     NULL,
> !     NULL,
> !     NULL,
> !     NULL,
> !     NULL,
> !     NULL
>   };
>
>   /**********************************
...

Why the NULLs at the end? It breaks my MSVC build with:

if_tcl.c(1690) : error C2078: too many initializers

Best regards,

Yongwei


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui