]> Savannah Git Hosting - gnulib.git/commitdiff
dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
authorJim Meyering <meyering@fb.com>
Thu, 29 Sep 2016 04:20:38 +0000 (21:20 -0700)
committerJim Meyering <meyering@fb.com>
Thu, 29 Sep 2016 04:20:38 +0000 (21:20 -0700)
* lib/dfa.c (dfassbuild): Mark the end of this case with a
/* fallthrough */ comment.

ChangeLog
lib/dfa.c

index 21a55e82aa9d236fb8ccc00197a4b1aa91136dd4..06174b6efbad8be214dedf196c346038fcd68d54 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2016-09-28  Jim Meyering  <meyering@fb.com>
 
+       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
index 4c41fa660beca47adc4e68739c403c1e8be88bf3..c4dc626b1e8721cbea7845a3c396836b874f4b7c 100644 (file)
--- 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)