diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-10-24 21:49:36 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-10-24 21:49:36 +0200 |
commit | 2f40d129bf45cd35976e4120336ae6d504f5a5dd (patch) | |
tree | 28165f91d583148c96dca3f4fe5d0c7e61b2e860 /src/regexp.c | |
parent | 4f1982800f0aff28df6875e718a786f6c4b11ad9 (diff) | |
download | vim-git-2f40d129bf45cd35976e4120336ae6d504f5a5dd.tar.gz |
patch 8.0.1215: newer gcc warns for implicit fallthroughv8.0.1215
Problem: Newer gcc warns for implicit fallthrough.
Solution: Consistently use a FALLTHROUGH comment. (Christian Brabandt)
Diffstat (limited to 'src/regexp.c')
-rw-r--r-- | src/regexp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/regexp.c b/src/regexp.c index c4745ce7a..a5d7a13a4 100644 --- a/src/regexp.c +++ b/src/regexp.c @@ -1997,7 +1997,7 @@ regatom(int *flagp) goto collection; /* "\_x" is character class plus newline */ - /*FALLTHROUGH*/ + /* FALLTHROUGH */ /* * Character classes. @@ -5847,7 +5847,7 @@ regrepeat( case IDENT: case IDENT + ADD_NL: testval = TRUE; - /*FALLTHROUGH*/ + /* FALLTHROUGH */ case SIDENT: case SIDENT + ADD_NL: while (count < maxcount) @@ -5877,7 +5877,7 @@ regrepeat( case KWORD: case KWORD + ADD_NL: testval = TRUE; - /*FALLTHROUGH*/ + /* FALLTHROUGH */ case SKWORD: case SKWORD + ADD_NL: while (count < maxcount) @@ -5908,7 +5908,7 @@ regrepeat( case FNAME: case FNAME + ADD_NL: testval = TRUE; - /*FALLTHROUGH*/ + /* FALLTHROUGH */ case SFNAME: case SFNAME + ADD_NL: while (count < maxcount) @@ -5938,7 +5938,7 @@ regrepeat( case PRINT: case PRINT + ADD_NL: testval = TRUE; - /*FALLTHROUGH*/ + /* FALLTHROUGH */ case SPRINT: case SPRINT + ADD_NL: while (count < maxcount) @@ -6131,7 +6131,7 @@ do_class: case ANYOF: case ANYOF + ADD_NL: testval = TRUE; - /*FALLTHROUGH*/ + /* FALLTHROUGH */ case ANYBUT: case ANYBUT + ADD_NL: |