git: f4d71d0c1a99 - main - stand: Fix set but unused warning

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 26 Jul 2022 04:52:07 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=f4d71d0c1a9976c047758e065adb2c1498cd9765

commit f4d71d0c1a9976c047758e065adb2c1498cd9765
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-26 04:48:31 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-07-26 04:50:13 +0000

    stand: Fix set but unused warning
    
    Make interp_identifier global to avoid a set but not used warning. For a
    global, llvm can't optimize it out (yet?)
    
    Sponsored by:           Netflix
---
 stand/common/interp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/stand/common/interp.c b/stand/common/interp.c
index ab68694d61b7..de5ea55eab41 100644
--- a/stand/common/interp.c
+++ b/stand/common/interp.c
@@ -39,6 +39,8 @@ __FBSDID("$FreeBSD$");
 
 #define	MAXARGS	20			/* maximum number of arguments allowed */
 
+const char * volatile	interp_identifier;
+
 /*
  * Interactive mode
  */
@@ -46,7 +48,6 @@ void
 interact(void)
 {
 	static char		input[256];		/* big enough? */
-	const char * volatile	interp_identifier;
 
 	TSENTER();