Le Fri, 22 May 2009 19:42:43 -0700 (PDT), Yongwei Wu a écrit dans le
message
<c3a50ae4-1f2e-4986-9669-b02639f6b...@r31g2000prh.googlegroups.com> :

> Why the NULLs at the end? It breaks my MSVC build with:
> 
> if_tcl.c(1690) : error C2078: too many initializers

And using GCC 3.2 on Linux, I get warnings:

====================== compiling if_tcl.c =========
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
-g -O2 -fno-strength-reduce  -I/usr/X11R6/include -D_REENTRANT
-D_GNU_SOURCE  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm  -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE
-I/usr/include/python2.2 -pthread -I/usr/include    -o objects/if_tcl.o
if_tcl.c
if_tcl.c:1687: warning: excess elements in struct initializer
if_tcl.c:1687: warning: (near initialization for `channel_type')
if_tcl.c:1688: warning: excess elements in struct initializer
if_tcl.c:1688: warning: (near initialization for `channel_type')
if_tcl.c:1690: warning: excess elements in struct initializer
if_tcl.c:1690: warning: (near initialization for `channel_type')
====================================================

======= gcc version ===============
[...@localhost pt]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib
--with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info
--enable-shared --enable-threads=posix --disable-checking
--enable-long-long --enable-__cxa_atexit
--enable-languages=c,c++,ada,f77,objc,java
--host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk)
=====================================


============ vim version ================
[...@localhost pt]$ export LC_MESSAGES='C'
[...@localhost pt]$ vim --version
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled May 23 2009 06:36:04)
Included patches: 1-186
Compiled by [email protected]
Huge version with GTK GUI.  Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset
+cindent
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info
+comments
+cryptv +cscope +cursorshape +dialog_con_gui +diff +digraphs +dnd
-ebcdic
+emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path
+find_in_path
+float +folding -footer +fork() +gettext -hangul_input +iconv
+insert_expand
+jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds
+localmap
+menu +mksession +modify_fname +mouse +mouseshape +mouse_dec -mouse_gpm
-mouse_jsbterm +mouse_netterm -mouse_sysmouse +mouse_xterm +multi_byte
+multi_lang -mzscheme +netbeans_intg -osfiletype +path_extra +perl
+postscript
+printer +profile +python +quickfix +reltime +rightleft -ruby
+scrollbind
+signs +smartindent -sniff +statusline -sun_workshop +syntax +tag_binary
+tag_old_static -tag_any_white +tcl +terminfo +termresponse +textobjects
+title
 +toolbar +user_commands +vertsplit +virtualedit +visual +visualextra
+viminfo
+vreplace +wildignore +wildmenu +windows +writebackup +X11 +xfontset
+xim
+xsmp_interact +xterm_clipboard -xterm_save
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/local/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include   -g -O2 -fno-strength-reduce  -I/usr/X11R6/include
-D_REENTRANT -D_GNU_SOURCE  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm  -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE
-I/usr/include/python2.2 -pthread -I/usr/include
Linking: gcc  -L/usr/X11R6/lib   -rdynamic
-Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE
-L/usr/local/lib -o vim   -L/usr/X11R6/lib -lgtk -lgdk -rdynamic
-lgmodule -lglib -lXi -lXext -lXt -lncurses -rdynamic
-Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE
-L/usr/local/lib
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a
-L/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -lperl -lcrypt
-lutil -L/usr/lib/python2.2/config -lpython2.2 -lutil -Xlinker
-export-dynamic -L/usr/lib -ltcl8.3 -lieee -lm
==================================================================
-- 
Patrick Texier

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

Raspunde prin e-mail lui