diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-10-02 16:28:09 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-10-02 16:28:09 (GMT) |
commit | a8669219e2c9fdf567965f04b311dc8e77f78945 (patch) | |
tree | e0bc5a6114da04b2bb9a713ea069b83d14620b23 /generic/tclFileName.c | |
parent | c5b93f9aebb418bc4b267bdb25f962a2d2ec4a4c (diff) | |
download | tcl-a8669219e2c9fdf567965f04b311dc8e77f78945.zip tcl-a8669219e2c9fdf567965f04b311dc8e77f78945.tar.gz tcl-a8669219e2c9fdf567965f04b311dc8e77f78945.tar.bz2 |
Fix -Wshadow warnings, when compiling with a C++ compiler
Diffstat (limited to 'generic/tclFileName.c')
-rw-r--r-- | generic/tclFileName.c | 4 |
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; |