Markus Heidelberg, 09.05.2008:
>
> Hello,
>
> this patch fixes following compiler warning (gcc 4.1.2 on GNU/Linux):
> warning: missing sentinel in function call
> ! XSetICValues(((GdkICPrivate*)ic)->xic, XNResetState, XIMPreserveState,
> 0);
> ! XSetICValues(((GdkICPrivate*)ic)->xic, XNResetState, XIMPreserveState,
> NULL);
Damn, ok this one does:
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
}
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---