summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdIL.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/tclCmdIL.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/tclCmdIL.c')
-rw-r--r--generic/tclCmdIL.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c
index df2decb..e8e69b2 100644
--- a/generic/tclCmdIL.c
+++ b/generic/tclCmdIL.c
@@ -3157,7 +3157,7 @@ Tcl_LsearchObjCmd(
"-real", "-regexp", "-sorted", "-start", "-stride",
"-subindices", NULL
};
- enum options {
+ enum lsearchoptions {
LSEARCH_ALL, LSEARCH_ASCII, LSEARCH_BISECT, LSEARCH_DECREASING,
LSEARCH_DICTIONARY, LSEARCH_EXACT, LSEARCH_GLOB, LSEARCH_INCREASING,
LSEARCH_INDEX, LSEARCH_INLINE, LSEARCH_INTEGER, LSEARCH_NOCASE,
@@ -3205,7 +3205,7 @@ Tcl_LsearchObjCmd(
result = TCL_ERROR;
goto done;
}
- switch ((enum options) index) {
+ switch ((enum lsearchoptions) index) {
case LSEARCH_ALL: /* -all */
allMatches = 1;
break;