Re: [PATCH] putenv tests: Silence -Wanalyzer-putenv-of-auto-var.

2024-05-24 Thread Bruno Haible
Collin Funk wrote: > + putenv tests: Silence -Wanalyzer-putenv-of-auto-var. > + * tests/test-putenv.c (main): Declare static variables to pass to > + putenv. While fixing one problem, this patch reintroduced another one. Namely, the argument to putenv needs to be - of unlimited life

[PATCH] putenv tests: Silence -Wanalyzer-putenv-of-auto-var.

2024-05-23 Thread Collin Funk
* tests/test-putenv.c (main): Declare static variables to pass to putenv. --- ChangeLog | 6 ++ tests/test-putenv.c | 12 +--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e09ff2a234..bc128db28b 100644 --- a/ChangeLog +++ b/Chan