Tony Mechelynck wrote: > On 14/01/14 19:36, Bram Moolenaar wrote: > > > > Patch 7.4.153 > > Problem: Compiler warning for pointer type. > > Solution: Add type cast. > > Files: src/if_py_both.h, src/if_python.c, src/if_python3.c > > > > I get the following warnings when compiling Vim 7.4.155 (Huge, +python > -python3) (7.4.153 to 155 were applied together): > > > gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread > > -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 > > -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 > > -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include > > -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 > > -pthread -DORBIT2=1 -D_REENTRANT -I/usr/include/libgnomeui-2.0 > > -I/usr/include/libart-2.0 -I/usr/include/gconf/2 > > -I/usr/include/gnome-keyring-1 -I/usr/include/libgnome-2.0 > > -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnomecanvas-2.0 > > -I/usr/include/gtk-2.0 -I/usr/include/gdk-pixbuf-2.0 > > -I/usr/include/gnome-vfs-2.0 -I/usr/lib64/gnome-vfs-2.0/include > > -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include > > -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include > > -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 > > -I/usr/include/bonobo-activation-2.0 -I/usr/include/libxml2 > > -I/usr/include/pango-1.0 -I/usr/include/gail-1.0 -I/usr/include/freetype2 > > -I/usr/i > nclude/atk-1.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/cairo > -I/usr/include/pixman-1 -I/usr/include/libpng14 -O2 -fno-strength-reduce > -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -I/usr/include > -D_LARGEFILE64_SOURCE=1 -I/usr/include/python2.7 -DPYTHON_HOME='"/usr"' > -pthread -fPIE -o objects/if_python.o if_python.c > > In file included from if_python.c:809:0: > > if_py_both.h: In function ‘_DictionaryItem’: > > if_py_both.h:1625:2: warning: dereferencing type-punned pointer will break > > strict-aliasing rules [-Wstrict-aliasing] > > if_py_both.h: In function ‘ListAssSlice’: > > if_py_both.h:2510:6: warning: format ‘%d’ expects argument of type ‘int’, > > but argument 3 has type ‘Py_ssize_t’ [-Wformat] > > if_py_both.h:2523:2: warning: format ‘%d’ expects argument of type ‘int’, > > but argument 3 has type ‘Py_ssize_t’ [-Wformat] > > if_py_both.h:2523:2: warning: format ‘%d’ expects argument of type ‘int’, > > but argument 4 has type ‘Py_ssize_t’ [-Wformat] > > if_py_both.h: In function ‘ListAssItem’: > > if_py_both.h:2542:21: warning: ‘lis’ may be used uninitialized in this > > function [-Wmaybe-uninitialized] > > if_py_both.h:2376:18: note: ‘lis’ was declared here > > An executable is produced.
Thanks, I'll put it in the todo list. -- hundred-and-one symptoms of being an internet addict: 165. You have a web page burned into your glasses /// 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/groups/opt_out.
