Subject: bug#19357: [PATCH] grep: fails to build grep on a machine which has no PCRE with --enable-gcc-warnings

From: Jim Meyering <[email-masked]>
Date: Fri, 12 Dec 2014 08:54:22 -0800

On Fri, Dec 12, 2014 at 7:53 AM, Norihiro Tanaka <[email-masked]> wrote:
> If a machine has no PCRE, grep fails to build grep on it du to
> -Werror=unused-variable with --enable-gcc-warnings.  I found it on
> Fedora 21 (GCC 4.9.2).
>
> $ ./configure --enable-gcc-warnings
>
> $ make
...
>   CC       pcresearch.o
> pcresearch.c:43:12: error: 'empty_match' defined but not used [-Werror=unused-variable]
>  static int empty_match[2];

Thank you. I've adjusted your patch (removed NEWS entry, modified commit message
to be more in line with our conventions), and will push shortly: