Re: Fix trim2 uninitialized GCC warning

2023-04-07 Thread Bruno Haible
I wrote: > trim: Add tests. > * tests/test-trim.c: New file. > * tests/test-trim1.sh: New file. > * tests/test-trim2.sh: New file. > * tests/test-trim3.sh: New file. > * modules/trim-tests: New file. On NetBSD, I see a link error: gcc -Wno-error -g -O2 -L/hom

Re: Fix trim2 uninitialized GCC warning

2023-04-02 Thread Bruno Haible
Hello Georg, > However, to eliminate the warning, the code also can be simplified like this: > > ``` > diff --git a/lib/trim.c b/lib/trim.c > index 162c43e1de..bfd743cf0f 100644 > --- a/lib/trim.c > +++ b/lib/trim.c > @@ -30,12 +30,6 @@ > #include "mbiter.h" > #include "xalloc.h" > > -/* Use

Fix trim2 uninitialized GCC warning

2023-04-02 Thread Georg Sauthoff
Hello, on Fedora Rawhide, gnulib compilation yields the following warning: gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-