summaryrefslogtreecommitdiffstats
path: root/generic/tclFileName.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-02 16:28:09 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-02 16:28:09 (GMT)
commitb7c4b811ec358b518d9a5ceaf204a84a5e5b59a8 (patch)
treee0bc5a6114da04b2bb9a713ea069b83d14620b23 /generic/tclFileName.c
parentcb6ae544245fea42d68f1f1c0c3ab5fd92babcaf (diff)
downloadtcl-b7c4b811ec358b518d9a5ceaf204a84a5e5b59a8.zip
tcl-b7c4b811ec358b518d9a5ceaf204a84a5e5b59a8.tar.gz
tcl-b7c4b811ec358b518d9a5ceaf204a84a5e5b59a8.tar.bz2
Fix -Wshadow warnings, when compiling with a C++ compiler
Diffstat (limited to 'generic/tclFileName.c')
-rw-r--r--generic/tclFileName.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclFileName.c b/generic/tclFileName.c
index 6d8b751..4c0125f 100644
--- a/generic/tclFileName.c
+++ b/generic/tclFileName.c
@@ -1237,7 +1237,7 @@ Tcl_GlobObjCmd(
"-directory", "-join", "-nocomplain", "-path", "-tails",
"-types", "--", NULL
};
- enum options {
+ enum globOptionsEnum {
GLOB_DIR, GLOB_JOIN, GLOB_NOCOMPLAIN, GLOB_PATH, GLOB_TAILS,
GLOB_TYPE, GLOB_LAST
};
@@ -1270,7 +1270,7 @@ Tcl_GlobObjCmd(
}
}
- switch (index) {
+ switch ((enum globOptionsEnum) index) {
case GLOB_NOCOMPLAIN: /* -nocomplain */
globFlags |= TCL_GLOBMODE_NO_COMPLAIN;
break;