From 0f494236b49fb48c1ef33669f14822ca4f3ce2f4 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Tue, 27 Jul 2021 17:45:34 +1000 Subject: [PATCH] lastenv is only used in setenv. Prevents an unused variable warning on platforms that have setenv but not unsetenv. --- openbsd-compat/setenv.c | 2 ++ 1 file changed, 2 insertions(+) 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 */ /*