On 09/05/08 09:23, Markus Heidelberg wrote:
> Hello,
>
> this patch fixes following compiler warning (gcc 4.1.2 on GNU/Linux):
> warning: missing sentinel in function call
>
> Index: src/mbyte.c
> ===================================================================
> *** src/mbyte.c (revision 1007)
> --- src/mbyte.c (working copy)
> ***************
> *** 5523,5530 ****
> XNPreeditDrawCallback,&preedit_draw_cb,
> XNPreeditCaretCallback,&preedit_caret_cb,
> XNPreeditDoneCallback,&preedit_done_cb,
> ! 0);
> ! XSetICValues (xxic, XNPreeditAttributes, preedit_attr, 0);
> XFree(preedit_attr);
> }
>
> --- 5523,5530 ----
> XNPreeditDrawCallback,&preedit_draw_cb,
> XNPreeditCaretCallback,&preedit_caret_cb,
> XNPreeditDoneCallback,&preedit_done_cb,
> ! NULL);
> ! XSetICValues (xxic, XNPreeditAttributes, preedit_attr, NULL);
> XFree(preedit_attr);
> }
>
> ***************
> *** 5534,5540 ****
> {
> #ifdef USE_X11R6_XIM
> /* don't change the input context when we call reset */
> ! XSetICValues(((GdkICPrivate*)ic)->xic, XNResetState, XIMPreserveState,
> 0);
> #endif
> }
>
> --- 5534,5540 ----
> {
> #ifdef USE_X11R6_XIM
> /* don't change the input context when we call reset */
> ! XSetICValues(((GdkICPrivate*)ic)->xic, XNResetState, XIMPreserveState,
> NULL);
> #endif
> }
I'm using gcc 4.2.1 (with +multi_byte) and I don't get this error: See
attached the errors from my latest full make, corresponding to 7.1.296.
I know that some of these errors are unavoidable.
Best regards,
Tony.
--
The people of Halifax invented the trampoline. During the
Victorian period the tripe-dressers of Halifax stretched tripe across a
large wooden frame and jumped up and down on it to `tender and dress'
it. The tripoline, as they called it, degenerated into becoming the
apparatus for a spectator sport.
The people of Halifax also invented the harmonium, a device for
castrating pigs during Sunday service.
-- Mike Harding, "The Armchair Anarchist's Almanac"
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---
eval.c: In function ‘echo_string’:
eval.c:7148: warning: pointer targets in passing argument 1 of ‘vim_snprintf’
differ in signedness
gui_gtk_x11.c: In function ‘gui_mch_init_check’:
gui_gtk_x11.c:1595: warning: pointer targets in passing argument 2 of
‘dcgettext’ differ in signedness
gui_gtk_x11.c: In function ‘sm_client_die’:
gui_gtk_x11.c:2350: warning: pointer targets in passing argument 2 of
‘vim_strncpy’ differ in signedness
gui_gtk_x11.c: In function ‘gui_mch_init’:
gui_gtk_x11.c:3418: warning: not enough variable arguments to fit a sentinel
gui_gtk_x11.c: In function ‘gui_mch_get_font’:
gui_gtk_x11.c:5246: warning: pointer targets in passing argument 2 of
‘dcgettext’ differ in signedness
if_perl.c: In function ‘boot_VIM’:
if_perl.c:1542: warning: unused variable ‘items’
if_python.c: In function ‘VimToPython’:
if_python.c:1139: warning: format ‘%f’ expects type ‘double’, but argument 3
has type ‘long int’
if_python.c: At top level:
if_python.c:1400: warning: ‘intargfunc’ is deprecated
if_python.c:1401: warning: ‘intargfunc’ is deprecated
if_python.c:1402: warning: ‘intintargfunc’ is deprecated
if_python.c:1643: warning: ‘intargfunc’ is deprecated
if_python.c:1644: warning: ‘intargfunc’ is deprecated
if_python.c:1645: warning: ‘intintargfunc’ is deprecated
if_python.c:1817: warning: ‘intargfunc’ is deprecated
if_python.c:1818: warning: ‘intargfunc’ is deprecated
if_python.c:1819: warning: ‘intintargfunc’ is deprecated
if_python.c:2135: warning: ‘intargfunc’ is deprecated
if_python.c:2136: warning: ‘intargfunc’ is deprecated
if_python.c:2137: warning: ‘intintargfunc’ is deprecated
/usr/lib/python2.5/config/libpython2.5.a(posixmodule.o): In function
`posix_tmpnam':
(.text+0x87b): warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
/usr/lib/python2.5/config/libpython2.5.a(posixmodule.o): In function
`posix_tempnam':
(.text+0x994): warning: the use of `tempnam' is dangerous, better use `mkstemp'