bug#51503: [PATCH 1/1] Silly patch to avoid some gcc 11.2 warnings

2021-10-30 Thread Duncan Roe
DO NOT APPLY THIS PATCH. The patch is to highlight code constructs that gcc can't analyse adequately. Signed-off-by: Duncan Roe --- lib/exclude.c| 9 +++-- lib/fts.c| 2 +- lib/regex_internal.c | 6 +++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/li

bug#51504: grep not building for me with gcc 11.2

2021-10-30 Thread Duncan Roe
Straight away let me say I have gotten around this and can now build grep. But it toook me 2 days. The actual bug is that `CFLAGS=` causes configure to enable gcc warnings. I would then get multiline warnings like the one at end of this report. Because of -Werror, the build would then stop. I had

bug#51504: grep not building for me with gcc 11.2

2021-10-30 Thread Paul Eggert
On 10/30/21 01:40, Duncan Roe wrote: To stop other folks running into this, configure.ac needs to be fixed to not --enable-gcc-warnings of its own accord. configure.ac enables GCC warnings by default only you're building from a Git repository. If you had built from the latest grep release tarb