summaryrefslogtreecommitdiffstats
path: root/generic/tclTest.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-28 10:13:51 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-28 10:13:51 (GMT)
commitf6bf85fb67eb15e637ecf7c7de4f661dc0557b43 (patch)
tree60462ca1b3918744f06fa3526fb19a09b1b6507b /generic/tclTest.c
parent866a79313bc49a69a821448e49bc9a67c97393bb (diff)
downloadtcl-f6bf85fb67eb15e637ecf7c7de4f661dc0557b43.zip
tcl-f6bf85fb67eb15e637ecf7c7de4f661dc0557b43.tar.gz
tcl-f6bf85fb67eb15e637ecf7c7de4f661dc0557b43.tar.bz2
Make Tcl compile warning-free using -Wshadow
Diffstat (limited to 'generic/tclTest.c')
-rw-r--r--generic/tclTest.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/generic/tclTest.c b/generic/tclTest.c
index 03f40dd..f1e3fac 100644
--- a/generic/tclTest.c
+++ b/generic/tclTest.c
@@ -7398,8 +7398,6 @@ TestconcatobjCmd(
"\n\t* (e) concatObj does not have refCount 0", NULL);
}
if (concatPtr == tmpPtr) {
- int len;
-
result = TCL_ERROR;
Tcl_AppendResult(interp, "\n\t* (e) concatObj is not a new obj ",
NULL);
@@ -7430,8 +7428,6 @@ TestconcatobjCmd(
"\n\t* (f) concatObj does not have refCount 0", NULL);
}
if (concatPtr == tmpPtr) {
- int len;
-
result = TCL_ERROR;
Tcl_AppendResult(interp, "\n\t* (f) concatObj is not a new obj ",
NULL);
@@ -7463,8 +7459,6 @@ TestconcatobjCmd(
"\n\t* (g) concatObj does not have refCount 0", NULL);
}
if (concatPtr == tmpPtr) {
- int len;
-
result = TCL_ERROR;
Tcl_AppendResult(interp, "\n\t* (g) concatObj is not a new obj ",
NULL);
@@ -7559,7 +7553,7 @@ static int
InterpCmdResolver(
Tcl_Interp *interp,
const char *name,
- Tcl_Namespace *context,
+ Tcl_Namespace *dummy,
int flags,
Tcl_Command *rPtr)
{
@@ -7569,6 +7563,7 @@ InterpCmdResolver(
varFramePtr->procPtr : NULL;
Namespace *callerNsPtr = varFramePtr->nsPtr;
Tcl_Command resolvedCmdPtr = NULL;
+ (void)dummy;
/*
* Just do something special on a cmd literal "z" in two cases: