bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: diffseq: Silence gcc warning


From: Paul Eggert
Subject: Re: diffseq: Silence gcc warning
Date: Fri, 26 May 2023 17:29:42 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 2023-05-26 05:56, Bruno Haible wrote:
In gettext and diffutils, I'm still seeing these warnings:

diffseq.h:424:36: warning: 'fxbest' may be used uninitialized 
[-Wmaybe-uninitialized]
diffseq.h:431:36: warning: 'bxbest' may be used uninitialized 
[-Wmaybe-uninitialized]

I don't get that warning with diffutils 3.10, using either GCC 13.1.1 20230511 (Red Hat 13.1.1-2) on Fedora 38 x86-64, or with GCC (Ubuntu 12.2.0-17ubuntu1) 12.2.0 on Ubuntu 23.04 x86-64. This was with a plain "./configure --enable-gcc-warnings; make".

What platform are you using and how did you configure and build?

I'd rather not litter the code with those ifdefs, as they cut into maintenance effort and could mask real bugs.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]