Paul Eggert <egg...@cs.ucla.edu> writes:

> On 2025-09-03 16:25, Bruno Haible via Bug reports for GNU grep wrote:
>> Still, in some circumstances, the current state of grep's
>> gnulib-tests/Makefile.am forces errors for warnings
>
> What circumstances are these? For grep we don't recommend
> --enable-gcc-warnings unless you know what you're doing.
>
> In the past I've preferred stricter warnings even for Gnulib, to help
> maintain the Gnulib stuff that I maintain.

If grep is the same as coreutils, then it is --enable-gcc-warnings is
enabled by default when there is a .git subdirectory.

Also, this patch makes things look similar to coreutils:

    $ head -n 3 coreutils/gnulib-tests/Makefile.am 
    AM_CFLAGS = $(GNULIB_TEST_WARN_CFLAGS) $(WERROR_CFLAGS)
    
    include gnulib.mk

Collin



Reply via email to