I have added a /* fallthrough */ comment, Jim works so in bug#17350.
From 8dafb60d7fdc0b9ce49a0dd51b0648108eb35781 Mon Sep 17 00:00:00 2001
From: Norihiro Tanaka <[email protected]>
Date: Sat, 10 May 2014 09:56:57 +0900
Subject: [PATCH] maint: mark a breakless case with /* fallthrough */ comment
* src/dfa.c (dfamust): Add comment so that it is clear that the "break"
statement is deliberately omitted.
---
src/dfa.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/dfa.c b/src/dfa.c
index 0a221f7..689e806 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -3929,13 +3929,16 @@ dfamust (struct dfa *d)
mp = allocmust (mp);
mp->begline = true;
break;
+
case ENDLINE:
mp = allocmust (mp);
mp->endline = true;
break;
+
case LPAREN:
case RPAREN:
assert (!"neither LPAREN nor RPAREN may appear here");
+ /* fallthrough */
case EMPTY:
case BEGWORD:
--
1.9.2