diff options
author | stwo <stwo@noemail.net> | 2011-01-06 06:00:12 (GMT) |
---|---|---|
committer | stwo <stwo@noemail.net> | 2011-01-06 06:00:12 (GMT) |
commit | 5305c1a66bcf9f477031398e8752f2310869613f (patch) | |
tree | 59cafb76fd418809d04173405bf3ef99eb38e5ae /generic/tkEvent.c | |
parent | 2c48e2ac3fb4c295ecb885aedd30d553922667d2 (diff) | |
download | tk-5305c1a66bcf9f477031398e8752f2310869613f.zip tk-5305c1a66bcf9f477031398e8752f2310869613f.tar.gz tk-5305c1a66bcf9f477031398e8752f2310869613f.tar.bz2 |
Cast some NULLs to (void *) in order to quash "missing sentinel in function call" compiler warnings.
FossilOrigin-Name: b7a58eae613a06ad7ad9e2cf2aa3a294804fc3b8
Diffstat (limited to 'generic/tkEvent.c')
-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 cd129a0..3fae141 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.35.2.4 2010/01/02 10:43:26 dkf Exp $ + * RCS: @(#) $Id: tkEvent.c,v 1.35.2.5 2011/01/06 06:00:12 stwo Exp $ */ #include "tkInt.h" @@ -345,7 +345,7 @@ CreateXIC( preedit_attlist = XVaCreateNestedList(0, XNSpotLocation, &spot, XNFontSet, dispPtr->inputXfs, - NULL); + (void *) NULL); } winPtr->inputContext = XCreateIC(dispPtr->inputMethod, @@ -353,7 +353,7 @@ CreateXIC( XNClientWindow, winPtr->window, XNFocusWindow, winPtr->window, preedit_attname, preedit_attlist, - NULL); + (void *) NULL); if (preedit_attlist) { XFree(preedit_attlist); @@ -368,7 +368,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); |