summaryrefslogtreecommitdiffstats
path: root/generic/tclPkg.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/tclPkg.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/tclPkg.c')
-rw-r--r--generic/tclPkg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclPkg.c b/generic/tclPkg.c
index cda74b1..89fb0c4 100644
--- a/generic/tclPkg.c
+++ b/generic/tclPkg.c
@@ -1073,7 +1073,7 @@ TclNRPackageObjCmd(
"present", "provide", "require", "unknown", "vcompare",
"versions", "vsatisfies", NULL
};
- enum pkgOptions {
+ enum pkgOptionsEnum {
PKG_FILES, PKG_FORGET, PKG_IFNEEDED, PKG_NAMES, PKG_PREFER,
PKG_PRESENT, PKG_PROVIDE, PKG_REQUIRE, PKG_UNKNOWN, PKG_VCOMPARE,
PKG_VERSIONS, PKG_VSATISFIES
@@ -1099,7 +1099,7 @@ TclNRPackageObjCmd(
&optionIndex) != TCL_OK) {
return TCL_ERROR;
}
- switch ((enum pkgOptions) optionIndex) {
+ switch ((enum pkgOptionsEnum) optionIndex) {
case PKG_FILES: {
PkgFiles *pkgFiles;