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: Sat, 27 May 2023 09:03:53 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 2023-05-27 02:39, Bruno Haible wrote:
   $ ../configure CC=gcc CXX=g++ CPPFLAGS=-Wall 2>&1 | tee log1

Oh, that enables warnings (i.e., it looks for lint), but it is not compiling with -DGCC_LINT. In general we don't need to support that combination, any more than we need to support lint checking with random compilers.

This probably explains why you saw the problem with diffutils but I didn't. Possibly you built diffutils with -Wall only. I configure diffutils with --enable-gcc-warnings, which does more checking than -Wall does, and also defines GCC_LINT. (Perhaps someday gettext could do something similar, but that'd be a bigger project.)

It's not worth changing diffseq.h back since the change is innocuous. But I hope we don't need to do much more of this sort of makework.



reply via email to

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