emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master c4ac34f: Pacify GCC 7 with --enable-gcc-warnings


From: Paul Eggert
Subject: [Emacs-diffs] master c4ac34f: Pacify GCC 7 with --enable-gcc-warnings
Date: Tue, 16 May 2017 16:24:58 -0400 (EDT)

branch: master
commit c4ac34f22794344d44022b9c497b2f12cdb0f4a6
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Pacify GCC 7 with --enable-gcc-warnings
    
    * src/regex.c (regex_compile): Swap labels, so that the
    FALLTHROUGH immediately precedes the case label.
---
 src/regex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/regex.c b/src/regex.c
index ed84890..240a91f 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -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)
            {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]