summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-04-17 14:29:46 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-04-17 14:29:46 (GMT)
commit6306fe3c43167542f753be2804a8e721bb37c1cf (patch)
tree8691576b26a68ee40198c4f38c15500bb1b76b2e /unix
parent57c91ad391ab148036a5c6e4f0fdee7381352a85 (diff)
downloadtk-6306fe3c43167542f753be2804a8e721bb37c1cf.zip
tk-6306fe3c43167542f753be2804a8e721bb37c1cf.tar.gz
tk-6306fe3c43167542f753be2804a8e721bb37c1cf.tar.bz2
Squelch some warnings from GCC.
Diffstat (limited to 'unix')
-rw-r--r--unix/tkUnixSelect.c12
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;
}