Re: silence some gcc -Wmaybe-uninitialized warnings

2023-05-18 Thread Bruno Haible
Paul Eggert wrote: > Yes, that's OK. As you say, the loss for reliability is small that way. Thanks for the review. I pushed the two patches. Bruno

Re: silence some gcc -Wmaybe-uninitialized warnings

2023-05-18 Thread Paul Eggert
On 5/18/23 15:09, Bruno Haible wrote: Some time ago, a distro guy explained on this list that IF_LINT does not help in their situation, because the distro wants to build each package once, with the settings that produce the best code, _and_ have the compiler report warnings for this situation.

silence some gcc -Wmaybe-uninitialized warnings

2023-05-18 Thread Bruno Haible
Hi Paul, Regarding these two warnings: * -O1, -O2, -O3, -Og, -Os only: ../../gllib/getndelim2.c:191:23: warning: 'c' may be used uninitialized [-Wmaybe-uninitialized] * -O2, -O3 only: ../../gllib/canonicalize.c:385:33: warning: 'end_idx' may be used uninitialized [-Wmaybe-uninitialized]