diff options
author | donal.k.fellows@manchester.ac.uk <dkf> | 2007-04-17 14:29:46 (GMT) |
---|---|---|
committer | donal.k.fellows@manchester.ac.uk <dkf> | 2007-04-17 14:29:46 (GMT) |
commit | 6a70f4ac023da68005b92775a16bacb13d7edc1a (patch) | |
tree | 8691576b26a68ee40198c4f38c15500bb1b76b2e /unix/tkUnixSelect.c | |
parent | 235f7075383c1a70c7a6f6c69efcd4e0a99589b1 (diff) | |
download | tk-6a70f4ac023da68005b92775a16bacb13d7edc1a.zip tk-6a70f4ac023da68005b92775a16bacb13d7edc1a.tar.gz tk-6a70f4ac023da68005b92775a16bacb13d7edc1a.tar.bz2 |
Squelch some warnings from GCC.
Diffstat (limited to 'unix/tkUnixSelect.c')
-rw-r--r-- | unix/tkUnixSelect.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/unix/tkUnixSelect.c b/unix/tkUnixSelect.c index ca54913..301a201 100644 --- a/unix/tkUnixSelect.c +++ b/unix/tkUnixSelect.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: tkUnixSelect.c,v 1.19 2007/02/22 13:56:34 dkf Exp $ + * RCS: @(#) $Id: tkUnixSelect.c,v 1.20 2007/04/17 14:29:46 dkf Exp $ */ #include "tkInt.h" @@ -534,7 +534,7 @@ TkSelEventProc( if (eventPtr->type == SelectionNotify) { register TkSelRetrievalInfo *retrPtr; - char *propInfo; + char *propInfo, **propInfoPtr = &propInfo; Atom type; int format, result; unsigned long numItems, bytesAfter; @@ -569,7 +569,7 @@ TkSelEventProc( eventPtr->xselection.requestor, retrPtr->property, 0, MAX_PROP_WORDS, False, (Atom) AnyPropertyType, &type, &format, &numItems, &bytesAfter, - (unsigned char **) &propInfo); + (unsigned char **) propInfoPtr); if ((result != Success) || (type == None)) { return; } @@ -754,7 +754,7 @@ SelTimeoutProc( retrPtr->result = TCL_ERROR; } else { retrPtr->timeout = Tcl_CreateTimerHandler(1000, SelTimeoutProc, - (ClientData) retrPtr); + (ClientData) retrPtr); } } @@ -1110,7 +1110,7 @@ SelRcvIncrProc( register XEvent *eventPtr) /* X PropertyChange event. */ { register TkSelRetrievalInfo *retrPtr = (TkSelRetrievalInfo *) clientData; - char *propInfo; + char *propInfo, **propInfoPtr = &propInfo; Atom type; int format, result; unsigned long numItems, bytesAfter; @@ -1125,7 +1125,7 @@ SelRcvIncrProc( result = XGetWindowProperty(eventPtr->xproperty.display, eventPtr->xproperty.window, retrPtr->property, 0, MAX_PROP_WORDS, True, (Atom) AnyPropertyType, &type, &format, &numItems, - &bytesAfter, (unsigned char **) &propInfo); + &bytesAfter, (unsigned char **) propInfoPtr); if ((result != Success) || (type == None)) { return; } |