summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2017-08-10 13:28:48 (GMT)
committerdgp <dgp@users.sourceforge.net>2017-08-10 13:28:48 (GMT)
commitc2982f8f62f8b7e7faf9e500f53dca8941299548 (patch)
tree541fc0a48bc060d5d47955dd70a8c3c0c778304c
parent545f5e64be672ba3c01ce8e345458d6b0e835080 (diff)
downloadtcl-c2982f8f62f8b7e7faf9e500f53dca8941299548.zip
tcl-c2982f8f62f8b7e7faf9e500f53dca8941299548.tar.gz
tcl-c2982f8f62f8b7e7faf9e500f53dca8941299548.tar.bz2
Silence compiler warning in --disable-threads build
-rw-r--r--generic/tclIORChan.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/tclIORChan.c b/generic/tclIORChan.c
index f476a1a..e862761 100644
--- a/generic/tclIORChan.c
+++ b/generic/tclIORChan.c
@@ -41,6 +41,8 @@ static void ReflectWatch(ClientData clientData, int mask);
static int ReflectBlock(ClientData clientData, int mode);
#ifdef TCL_THREADS
static void ReflectThread(ClientData clientData, int action);
+static int ReflectEventRun(Tcl_Event *ev, int flags);
+static int ReflectEventDelete(Tcl_Event *ev, ClientData cd);
#endif
static Tcl_WideInt ReflectSeekWide(ClientData clientData,
Tcl_WideInt offset, int mode, int *errorCodePtr);
@@ -748,6 +750,7 @@ TclChanCreateObjCmd(
*----------------------------------------------------------------------
*/
+#ifdef TCL_THREADS
typedef struct ReflectEvent {
Tcl_Event header;
ReflectedChannel *rcPtr;
@@ -791,6 +794,7 @@ ReflectEventDelete(
}
return 1;
}
+#endif
int
TclChanPostEventObjCmd(