summaryrefslogtreecommitdiffstats
path: root/win/tclWinPipe.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-08-15 11:18:34 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-08-15 11:18:34 (GMT)
commit92eaf8e25d6d7e2a1eccc1edd2672f55ffd9cf12 (patch)
tree6ab908687a3019ee6f7c025c96114ba9e52236c2 /win/tclWinPipe.c
parent5aa029e092e22af619bda9d024d4883a637f598a (diff)
parent092dd70e63fd7c5fcc9526b06c1242322378d492 (diff)
downloadtcl-92eaf8e25d6d7e2a1eccc1edd2672f55ffd9cf12.zip
tcl-92eaf8e25d6d7e2a1eccc1edd2672f55ffd9cf12.tar.gz
tcl-92eaf8e25d6d7e2a1eccc1edd2672f55ffd9cf12.tar.bz2
[Bug 3388350] mingw64 compiler warnings
Diffstat (limited to 'win/tclWinPipe.c')
-rw-r--r--win/tclWinPipe.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c
index 4ed3558..b29dde4 100644
--- a/win/tclWinPipe.c
+++ b/win/tclWinPipe.c
@@ -1647,7 +1647,6 @@ TclpCreateCommandChannel(
Tcl_Pid *pidPtr) /* An array of process identifiers. */
{
char channelName[16 + TCL_INTEGER_SPACE];
- int channelId;
DWORD id;
PipeInfo *infoPtr = (PipeInfo *) ckalloc((unsigned) sizeof(PipeInfo));
@@ -1666,20 +1665,6 @@ TclpCreateCommandChannel(
infoPtr->writeError = 0;
infoPtr->channel = (Tcl_Channel) NULL;
- /*
- * Use one of the fds associated with the channel as the channel id.
- */
-
- if (readFile) {
- channelId = (int) ((WinFile*)readFile)->handle;
- } else if (writeFile) {
- channelId = (int) ((WinFile*)writeFile)->handle;
- } else if (errorFile) {
- channelId = (int) ((WinFile*)errorFile)->handle;
- } else {
- channelId = 0;
- }
-
infoPtr->validMask = 0;
infoPtr->threadId = Tcl_GetCurrentThread();