used, unused variables

some variables marked as unused, are now actually used
some unused variables are eliminated or commented out
This commit is contained in:
nhmall
2024-03-16 12:53:58 -04:00
parent cad4d87101
commit 295d6e257c
10 changed files with 24 additions and 21 deletions

View File

@@ -1970,7 +1970,7 @@ optfn_map_mode(int optidx, int req, boolean negated, char *opts, char *op)
/* all the key assignment options for menu_* commands are identical
but optlist.h treats them as distinct rather than sharing one */
staticfn int
shared_menu_optfn(int optidx UNUSED, int req, boolean negated UNUSED,
shared_menu_optfn(int optidx UNUSED, int req, boolean negated,
char *opts, char *op)
{
if (req == do_init) {
@@ -3969,7 +3969,7 @@ extern const char *const known_restrictions[]; /* symbols.c */
staticfn int
optfn_symset(
int optidx UNUSED,
int optidx,
int req,
boolean negated UNUSED,
char *opts,
@@ -8621,7 +8621,7 @@ doset(void) /* changing options via menu by Per Liboriussen */
(void) parseoptions(buf, setinitial, fromfile);
} else {
/* compound option */
int k = opt_indx, reslt UNUSED;
int k = opt_indx, reslt;
if (allopt[k].has_handler && allopt[k].optfn) {
reslt = (*allopt[k].optfn)(allopt[k].idx, do_handler,