[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: warnings from gzip and diffutils
From: |
Bruno Haible |
Subject: |
Re: warnings from gzip and diffutils |
Date: |
Wed, 18 Dec 2024 19:57:00 +0100 |
Paul Eggert wrote:
> On 2024-12-17 17:21, Bruno Haible via Gnulib discussion list wrote:
> > Therefore, how about applying -Werror only to a subset of all
> > warnings, hand-picked by the maintainer?
>
> We already tailor warnings from Gnulib as opposed to warnings from the
> main program
Oh I see: Code that sets GNULIB_WARN_CFLAGS is already present in
gzip/configure.ac (and likewise in coreutils, grep, tar) but not yet in
diffutils/configure.ac.
# We use a slightly smaller set of warning options for lib/.
# Remove the following and save the result in GNULIB_WARN_CFLAGS.
nw=
...
gl_MANYWARN_COMPLEMENT([GNULIB_WARN_CFLAGS], [$WARN_CFLAGS], [$nw])
AC_SUBST([GNULIB_WARN_CFLAGS])
How about adding this block to the configure.ac of
diffutils
bison
m4
sed
that use the same idiom? Even if for the moment, nw remains empty here,
the comment would make it clear that this is the mechanism to disable
some warning options for lib/, and this would reduce the pressure on
gnulib do placate style warnings like the two recent ones.
Bruno
- Re: Use the translation domain "gnulib", (continued)
- Re: Use the translation domain "gnulib", Bruno Haible, 2024/12/10
- Re: Use the translation domain "gnulib", Simon Josefsson, 2024/12/10
- Re: Use the translation domain "gnulib", Bruno Haible, 2024/12/10
- Re: Use the translation domain "gnulib", Simon Josefsson, 2024/12/10
- Re: Use the translation domain "gnulib", Bruno Haible, 2024/12/10
Re: Use the translation domain "gnulib", Bruno Haible, 2024/12/10
- Re: Use the translation domain "gnulib", Bruno Haible, 2024/12/17
- Re: Use the translation domain "gnulib", Jim Meyering, 2024/12/17
- Re: warnings from gzip and diffutils, Bruno Haible, 2024/12/17
- Re: warnings from gzip and diffutils, Paul Eggert, 2024/12/18
- Re: warnings from gzip and diffutils,
Bruno Haible <=
- Re: warnings from gzip and diffutils, Simon Josefsson, 2024/12/18
- Re: warnings from gzip and diffutils, Bruno Haible, 2024/12/18
GNU Emacs and the translation domain "gnulib", Paul Eggert, 2024/12/10