This patch avoids the gcc warning ../../../../libX11-1.1.5/modules/im/ximcp/imDefLkup.c:223: warning: passing arg 1 of `_XimProcSyncReply' from incompatible pointer type (same as already done at other places) BTW: what is the difference between XIM (the type of ic->core.im) and Xim ? diff -ur libX11-1.1.5.orig/modules/im/ximcp/imDefLkup.c libX11-1.1.5/modules/im/ximcp/imDefLkup.c --- libX11-1.1.5.orig/modules/im/ximcp/imDefLkup.c 2008-09-04 23:35:13.000000000 +0200 +++ libX11-1.1.5/modules/im/ximcp/imDefLkup.c 2008-10-07 16:04:11.000000000 +0200 @@ -220,7 +220,7 @@ if (IS_FOCUSED(ic)) MARK_NEED_SYNC_REPLY(ic); else - _XimProcSyncReply(ic->core.im, ic); + _XimProcSyncReply((Xim)ic->core.im, ic); } return True;