summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstwo@users.sourceforge.net <stwo>2011-01-06 05:58:15 (GMT)
committerstwo@users.sourceforge.net <stwo>2011-01-06 05:58:15 (GMT)
commit839f9bea492de6eaa3884a1a5f454eff3e2e2a8a (patch)
treece114895c5f0c860961963c80eb15866c2df5cad
parent808b7c299be721a370f6640b7fa0655e8d523423 (diff)
downloadtk-839f9bea492de6eaa3884a1a5f454eff3e2e2a8a.zip
tk-839f9bea492de6eaa3884a1a5f454eff3e2e2a8a.tar.gz
tk-839f9bea492de6eaa3884a1a5f454eff3e2e2a8a.tar.bz2
Cast some NULLs to (void *) in order to quash "missing sentinel in function call" compiler warnings.
-rw-r--r--ChangeLog7
-rw-r--r--generic/tkEvent.c8
-rw-r--r--unix/tkUnixEvent.c4
-rw-r--r--unix/tkUnixKey.c6
-rw-r--r--unix/tkUnixRFont.c4
5 files changed, 18 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 0222470..abc0382 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-01-06 Stuart Cassoff <stwo@users.sourceforge.net>
+
+ * generic/tkEvent.c: Cast some NULLs to (void *) in order to quash
+ * unix/tkUnixEvent.c: "missing sentinel in function call"
+ * unix/tkUnixKey.c: compiler warnings.
+ * unix/tkUnixRFont.c:
+
2010-12-17 Stuart Cassoff <stwo@users.sourceforge.net>
* unix/Makefile.in: Clean up '.PHONY:' targets: Arrange those
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);
diff --git a/unix/tkUnixEvent.c b/unix/tkUnixEvent.c
index d3a42dd..390c72a 100644
--- a/unix/tkUnixEvent.c
+++ b/unix/tkUnixEvent.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkUnixEvent.c,v 1.36 2010/06/15 11:16:03 nijtmans Exp $
+ * RCS: @(#) $Id: tkUnixEvent.c,v 1.37 2011/01/06 05:58:15 stwo Exp $
*/
#include "tkUnixInt.h"
@@ -647,7 +647,7 @@ OpenIM(
}
if ((XGetIMValues(dispPtr->inputMethod, XNQueryInputStyle, &stylePtr,
- NULL) != NULL) || (stylePtr == NULL)) {
+ (void *) NULL) != NULL) || (stylePtr == NULL)) {
goto error;
}
diff --git a/unix/tkUnixKey.c b/unix/tkUnixKey.c
index ef0588f..47646b5 100644
--- a/unix/tkUnixKey.c
+++ b/unix/tkUnixKey.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkUnixKey.c,v 1.17 2010/01/02 11:07:56 dkf Exp $
+ * RCS: @(#) $Id: tkUnixKey.c,v 1.18 2011/01/06 05:58:16 stwo Exp $
*/
#include "tkInt.h"
@@ -65,9 +65,9 @@ Tk_SetCaretPos(
spot.x = dispPtr->caret.x;
spot.y = dispPtr->caret.y + dispPtr->caret.height;
- preedit_attr = XVaCreateNestedList(0, XNSpotLocation, &spot, NULL);
+ preedit_attr = XVaCreateNestedList(0, XNSpotLocation, &spot, (void *) NULL);
XSetICValues(winPtr->inputContext, XNPreeditAttributes, preedit_attr,
- NULL);
+ (void *) NULL);
XFree(preedit_attr);
}
#endif
diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c
index effeb57..d77ee5f 100644
--- a/unix/tkUnixRFont.c
+++ b/unix/tkUnixRFont.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkUnixRFont.c,v 1.36 2010/12/02 11:38:29 dkf Exp $
+ * RCS: @(#) $Id: tkUnixRFont.c,v 1.37 2011/01/06 05:58:16 stwo Exp $
*/
#include "tkUnixInt.h"
@@ -115,7 +115,7 @@ GetFont(
FC_FAMILY, FcTypeString, "sans",
FC_SIZE, FcTypeDouble, 12.0,
FC_MATRIX, FcTypeMatrix, &mat,
- NULL);
+ (void *) NULL);
}
if (!ftFont) {
/*