]> git.eshelyaron.com Git - emacs.git/commitdiff
Pacify GCC 7 with --enable-gcc-warnings
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 16 May 2017 20:24:33 +0000 (13:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 16 May 2017 20:24:52 +0000 (13:24 -0700)
* src/regex.c (regex_compile): Swap labels, so that the
FALLTHROUGH immediately precedes the case label.

src/regex.c

index ed848902086294ba109d059edf0945c20e742c52..240a91f2ba83e69a2a9ff184e14f9d8bbd233a7e 100644 (file)
@@ -2637,8 +2637,8 @@ regex_compile (const_re_char *pattern, size_t size,
              || (syntax & RE_LIMITED_OPS))
            goto normal_char;
          FALLTHROUGH;
-       handle_plus:
        case '*':
+       handle_plus:
          /* If there is no previous pattern...  */
          if (!laststart)
            {