1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-06 13:09:50 +00:00

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
This commit is contained in:
Warner Losh 2022-07-25 22:48:31 -06:00
parent be54920c3b
commit f4d71d0c1a

View File

@ -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();