Add -Wshadow to Makefile and fix the resulting warnings. Many of
authormillert <millert@openbsd.org>
Wed, 27 Dec 2017 13:02:57 +0000 (13:02 +0000)
committermillert <millert@openbsd.org>
Wed, 27 Dec 2017 13:02:57 +0000 (13:02 +0000)
commit201e0776e68df3547d24a3790d166bbefd438756
tree6641963dd6823f21f53451d5686cd4996555f12a
parent2e72ff404b31aa2fff4e36d6b01965d67fd97037
Add -Wshadow to Makefile and fix the resulting warnings.  Many of
the warnings are due to the use of globals with generic names,
specifically "options" and "path".  I've renamed "options" to
"sh_options" since it holds the shell options and "path" to
"search_path".  OK jca@ tb@
12 files changed:
bin/ksh/Makefile
bin/ksh/c_ksh.c
bin/ksh/c_sh.c
bin/ksh/edit.c
bin/ksh/emacs.c
bin/ksh/exec.c
bin/ksh/lex.c
bin/ksh/misc.c
bin/ksh/sh.h
bin/ksh/table.c
bin/ksh/table.h
bin/ksh/var.c