summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixChan.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-05 15:14:29 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-05 15:14:29 (GMT)
commit96c82a32e19afd4581f3aa21da39c8c6aa90bd7c (patch)
tree31455945857d2de92c86342b6a07d812a83f4350 /unix/tclUnixChan.c
parent2d7fb3bc20951567f5cd26584fb146ea5c271cc2 (diff)
parent26c1cd495a1ba8397db198e13aafe1a29287e6d0 (diff)
downloadtcl-96c82a32e19afd4581f3aa21da39c8c6aa90bd7c.zip
tcl-96c82a32e19afd4581f3aa21da39c8c6aa90bd7c.tar.gz
tcl-96c82a32e19afd4581f3aa21da39c8c6aa90bd7c.tar.bz2
Mark more function paramaters as unused. Now Tcl compiles fully (on UNIX and Windows) without -Wunused-parameters warnings
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r--unix/tclUnixChan.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c
index f3814fb..2dc5f46 100644
--- a/unix/tclUnixChan.c
+++ b/unix/tclUnixChan.c
@@ -353,10 +353,11 @@ FileOutputProc(
static int
FileCloseProc(
void *instanceData, /* File state. */
- Tcl_Interp *interp) /* For error reporting - unused. */
+ Tcl_Interp *dummy) /* For error reporting - unused. */
{
FileState *fsPtr = (FileState *)instanceData;
int errorCode = 0;
+ (void)dummy;
Tcl_DeleteFileHandler(fsPtr->fd);
@@ -1927,7 +1928,7 @@ Tcl_GetOpenFile(
const char *chanID, /* String that identifies file. */
int forWriting, /* 1 means the file is going to be used for
* writing, 0 means for reading. */
- int checkUsage, /* 1 means verify that the file was opened in
+ int dummy, /* 1 means verify that the file was opened in
* a mode that allows the access specified by
* "forWriting". Ignored, we always check that
* the channel is open for the requested
@@ -1939,6 +1940,7 @@ Tcl_GetOpenFile(
const Tcl_ChannelType *chanTypePtr;
void *data;
FILE *f;
+ (void)dummy;
chan = Tcl_GetChannel(interp, chanID, &chanMode);
if (chan == NULL) {