From: Jim Meyering Date: Thu, 29 Sep 2016 04:20:38 +0000 (-0700) Subject: dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough X-Git-Tag: v1.0~6623 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=5f919be9d0db97e8daecaa61e6f4ff3b96b2a0fe;p=gnulib.git dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough * lib/dfa.c (dfassbuild): Mark the end of this case with a /* fallthrough */ comment. --- diff --git a/ChangeLog b/ChangeLog index 21a55e82aa..06174b6efb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2016-09-28 Jim Meyering + dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough + * lib/dfa.c (dfassbuild): Mark the end of this case with a + /* fallthrough */ comment. + getprogname: avoid __progname vs program_invocation_short_name pitfall I.e., don't let the OpenBSD 5.1 fix induce failure when using newer glibc. Would have caused failure with Fedora 25's glibc-2.24-3, but diff --git a/lib/dfa.c b/lib/dfa.c index 4c41fa660b..c4dc626b1e 100644 --- a/lib/dfa.c +++ b/lib/dfa.c @@ -3434,6 +3434,7 @@ dfassbuild (struct dfa *d) sup->tokens[j++] = EMPTY; break; } + /* fallthrough */ default: sup->tokens[j++] = d->tokens[i]; if ((0 <= d->tokens[i] && d->tokens[i] < NOTCHAR)