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/tclProcess.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/tclProcess.c')
-rw-r--r-- | generic/tclProcess.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclProcess.c b/generic/tclProcess.c index d4cf717..7bd5e1a 100644 --- a/generic/tclProcess.c +++ b/generic/tclProcess.c @@ -472,7 +472,7 @@ ProcessStatusObjCmd( static const char *const switches[] = { "-wait", "--", NULL }; - enum switches { + enum switchesEnum { STATUS_WAIT, STATUS_LAST }; @@ -485,7 +485,7 @@ ProcessStatusObjCmd( return TCL_ERROR; } ++objv; --objc; - if (STATUS_WAIT == (enum switches) index) { + if (STATUS_WAIT == (enum switchesEnum) index) { options = 0; } else { break; |