From 876c72d7613f05fafb98b47d60b4f0b4a8cb1552 Mon Sep 17 00:00:00 2001
From: Norihiro Tanaka <noritnk@kcn.ne.jp>
Date: Fri, 12 Dec 2014 12:46:50 +0900
Subject: [PATCH] build: avoid build failure with --enable-gcc-warnings and no
 PCRE

* src/pcresearch.c [HAVE_LIBPCRE] (empty_match): Guard the declaration
of this PCRE-only variable.
---
 src/pcresearch.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/pcresearch.c b/src/pcresearch.c
index 5451029..36cf4dd 100644
--- a/src/pcresearch.c
+++ b/src/pcresearch.c
@@ -38,9 +38,11 @@ static pcre_extra *extra;
 # endif
 #endif

+#if HAVE_LIBPCRE
 /* Table, indexed by ! (flag & PCRE_NOTBOL), of whether the empty
    string matches when that flag is used.  */
 static int empty_match[2];
+#endif

 /* This must be at least 2; everything after that is for performance
    in pcre_exec.  */
-- 
2.2.0

