summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-01-11 14:59:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-01-11 14:59:03 +0200
commit9e5a6e866cad052f0e5e9930d460f92568485f3e (patch)
treecc73aabdc34151b859f9a7f1e510f37902e8647c /cli
parentc26871361a660109c3cb63d6990a827f79d1c258 (diff)
Fix implicit fallthrough warnings
Diffstat (limited to 'cli')
-rw-r--r--cli/context.cxx3
-rw-r--r--cli/parser.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/cli/context.cxx b/cli/context.cxx
index 0cfe0b7..d6c0add 100644
--- a/cli/context.cxx
+++ b/cli/context.cxx
@@ -1025,9 +1025,8 @@ format_line (output_type ot, string& r, const char* s, size_t n)
break;
}
-
- // Fall through.
}
+ // Fall through.
default:
r += c;
break;
diff --git a/cli/parser.cxx b/cli/parser.cxx
index ab62105..63a911f 100644
--- a/cli/parser.cxx
+++ b/cli/parser.cxx
@@ -554,9 +554,8 @@ decl (token& t)
{
if (t.punctuation () != token::p_lcbrace)
break;
-
- // Fall through.
}
+ // Fall through.
case token::t_string_lit:
{
scope_doc (t);