diff options
author | stwo <stwo> | 2011-01-06 05:58:15 (GMT) |
---|---|---|
committer | stwo <stwo> | 2011-01-06 05:58:15 (GMT) |
commit | 0073223922e3f2ce1c15c501de3c84196b5972da (patch) | |
tree | ce114895c5f0c860961963c80eb15866c2df5cad /generic | |
parent | 18c820c6017eabf6e1f2ebcce5dcf7d84bf45911 (diff) | |
download | tk-0073223922e3f2ce1c15c501de3c84196b5972da.zip tk-0073223922e3f2ce1c15c501de3c84196b5972da.tar.gz tk-0073223922e3f2ce1c15c501de3c84196b5972da.tar.bz2 |
Cast some NULLs to (void *) in order to quash "missing sentinel in function call" compiler warnings.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkEvent.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkEvent.c b/generic/tkEvent.c index 63c69ac..d22116a 100644 --- a/generic/tkEvent.c +++ b/generic/tkEvent.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkEvent.c,v 1.43 2010/02/13 13:47:49 nijtmans Exp $ + * RCS: @(#) $Id: tkEvent.c,v 1.44 2011/01/06 05:58:15 stwo Exp $ */ #include "tkInt.h" @@ -339,7 +339,7 @@ CreateXIC( preedit_attlist = XVaCreateNestedList(0, XNSpotLocation, &spot, XNFontSet, dispPtr->inputXfs, - NULL); + (void *) NULL); } winPtr->inputContext = XCreateIC(dispPtr->inputMethod, @@ -347,7 +347,7 @@ CreateXIC( XNClientWindow, winPtr->window, XNFocusWindow, winPtr->window, preedit_attname, preedit_attlist, - NULL); + (void *) NULL); if (preedit_attlist) { XFree(preedit_attlist); @@ -362,7 +362,7 @@ CreateXIC( /* * Adjust the window's event mask if the IM requires it. */ - XGetICValues(winPtr->inputContext, XNFilterEvents, &im_event_mask, NULL); + XGetICValues(winPtr->inputContext, XNFilterEvents, &im_event_mask, (void *) NULL); if ((winPtr->atts.event_mask & im_event_mask) != im_event_mask) { winPtr->atts.event_mask |= im_event_mask; XSelectInput(winPtr->display, winPtr->window, winPtr->atts.event_mask); |