diff options
author | stwo <stwo> | 2012-08-09 16:40:41 (GMT) |
---|---|---|
committer | stwo <stwo> | 2012-08-09 16:40:41 (GMT) |
commit | 60370012590a96ccb9b812f8688a0f8822c9883b (patch) | |
tree | 5347ed6db43d87e11078a4b2a93649e2a15fa016 /unix | |
parent | 6a53e1bcab0c83c50e6a686c0ac485687ff29b8f (diff) | |
download | tk-60370012590a96ccb9b812f8688a0f8822c9883b.zip tk-60370012590a96ccb9b812f8688a0f8822c9883b.tar.gz tk-60370012590a96ccb9b812f8688a0f8822c9883b.tar.bz2 |
Remove useless (void *) casts introduced in checkin [b7a58eae61]. The warnings were false flags from a faulty OpenBSD C compiler.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tkUnixEvent.c | 2 | ||||
-rw-r--r-- | unix/tkUnixKey.c | 4 | ||||
-rw-r--r-- | unix/tkUnixRFont.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/unix/tkUnixEvent.c b/unix/tkUnixEvent.c index 09dde72..59fba29 100644 --- a/unix/tkUnixEvent.c +++ b/unix/tkUnixEvent.c @@ -639,7 +639,7 @@ OpenIM( } if ((XGetIMValues(dispPtr->inputMethod, XNQueryInputStyle, &stylePtr, - (void *) NULL) != NULL) || (stylePtr == NULL)) { + NULL) != NULL) || (stylePtr == NULL)) { goto error; } diff --git a/unix/tkUnixKey.c b/unix/tkUnixKey.c index ed77877..f422111 100644 --- a/unix/tkUnixKey.c +++ b/unix/tkUnixKey.c @@ -65,10 +65,10 @@ Tk_SetCaretPos( spot.x = dispPtr->caret.x; spot.y = dispPtr->caret.y + dispPtr->caret.height; - preedit_attr = XVaCreateNestedList(0, XNSpotLocation, &spot, (void *) NULL); + preedit_attr = XVaCreateNestedList(0, XNSpotLocation, &spot, NULL); XSetICValues(winPtr->inputContext, XNPreeditAttributes, preedit_attr, - (void *) NULL); + NULL); XFree(preedit_attr); } #endif diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c index c3ece5e..fd0b556 100644 --- a/unix/tkUnixRFont.c +++ b/unix/tkUnixRFont.c @@ -101,7 +101,7 @@ GetFont( ftFont = XftFontOpen(fontPtr->display, fontPtr->screen, FC_FAMILY, FcTypeString, "sans", FC_SIZE, FcTypeDouble, 12.0, - (void *) NULL); + NULL); } if (!ftFont) { /* |