From: Darren Tucker Date: Tue, 27 Jul 2021 07:45:34 +0000 (+1000) Subject: lastenv is only used in setenv. X-Git-Tag: V_8_7_P1~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f494236b49fb48c1ef33669f14822ca4f3ce2f4;p=thirdparty%2Fopenssh-portable.git lastenv is only used in setenv. Prevents an unused variable warning on platforms that have setenv but not unsetenv. --- diff --git a/openbsd-compat/setenv.c b/openbsd-compat/setenv.c index 373b701d9..86954c284 100644 --- a/openbsd-compat/setenv.c +++ b/openbsd-compat/setenv.c @@ -39,7 +39,9 @@ #include extern char **environ; +#ifndef HAVE_SETENV static char **lastenv; /* last value of environ */ +#endif /* OpenSSH Portable: __findenv is from getenv.c rev 1.8, made static */ /*