From 0e1f38d1402abcfbd9dec29103c68f86609ed28c Mon Sep 17 00:00:00 2001 From: Jim Meyering
Date: Wed, 28 Sep 2016 11:53:31 -0700 Subject: [PATCH 1/2] gnulib: update to latest; for ... This includes the following: - a getprogname-vs-openbsd-5.1 portability fix - "fallthru" comment-adding changes for dfa and unistr/u8-uctomb-aux.c - another getprograme fix to avoid breaking newer glibc --- gnulib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnulib b/gnulib index fce9b3f..5f7358c 160000 --- a/gnulib +++ b/gnulib @@ -1 +1 @@ -Subproject commit fce9b3f0e2b98e386ca881a0961ca03e86ce73c8 +Subproject commit 5f7358cc193d40a8e2c37409d437d7f0f2a0f9b1 -- 2.7.4 From f2751efd87c91576fcac1033a5919d363967a838 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 28 Sep 2016 22:08:07 -0700 Subject: [PATCH 2/2] build: placate GCC 7's -Wimplicit-fallthrough * src/pcresearch.c (die): New macro. (Pexecute): Use it in place of offending uses of error, to placate GCC 7's -Wimplicit-fallthrough. Include verify.h. Since this is grep's first explicit use of this gnulib module, ... * bootstrap.conf (gnulib_modules): Add verify. --- bootstrap.conf | 1 + src/pcresearch.c | 19 ++++++++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/bootstrap.conf b/bootstrap.conf index 3b12061..5ee69cd 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -88,6 +88,7 @@ unistd unlocked-io update-copyright useless-if-before-free +verify version-etc-fsf wchar wcrtomb diff --git a/src/pcresearch.c b/src/pcresearch.c index 9ffa22a..6e192e3 100644 --- a/src/pcresearch.c +++ b/src/pcresearch.c @@ -20,6 +20,19 @@ #include