From e384e3a5a113b69f4a208ae82bab58b836234da1 Mon Sep 17 00:00:00 2001 From: PatR Date: Sun, 5 Nov 2023 17:23:46 -0800 Subject: [PATCH] suppress 'variable not used' warning My compiler didn't warn about this. The value conditionally gets set but then isn't used anywhere besides that. For the time being, give 'skipped_noninuse' a fake use rather than eliminate it altogether. --- src/invent.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/invent.c b/src/invent.c index 4894de253..14f86cea2 100644 --- a/src/invent.c +++ b/src/invent.c @@ -3525,6 +3525,7 @@ display_pickinv( add_menu_str(win, inuse_only ? not_using_anything : (!show_gold && skipped_gold) ? only_carrying_gold : not_carrying_anything); + nhUse(skipped_noninuse); /* no longer needed */ want_reply = FALSE; } #ifdef TTY_PERM_INVENT