summaryrefslogtreecommitdiff
path: root/tests/test-unsetenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-unsetenv.c')
-rw-r--r--tests/test-unsetenv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-unsetenv.c b/tests/test-unsetenv.c
index ddc412867f..d8e5b01192 100644
--- a/tests/test-unsetenv.c
+++ b/tests/test-unsetenv.c
@@ -32,7 +32,8 @@ SIGNATURE_CHECK (unsetenv, int, (char const *));
int
main (void)
{
- char entry[] = "b=2";
+ /* Static to pacify gcc -Wanalyzer-putenv-of-auto-var. */
+ static char entry[] = "b=2";
/* Test removal when multiple entries present. */
ASSERT (putenv ((char *) "a=1") == 0);