From 565e0edacc48c86adfb12515ed6911c08c1f64d9 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 27 Sep 2016 11:28:18 -0600 Subject: Fix "obvious" fall-through warnings This patch fixes the subset of -Wimplicit-fallthrough warnings that I considered obvious. In most cases it was obvious from context that falling through was desired; here I added the appropriate comment. In a couple of cases it seemed clear that a "break" was missing. ChangeLog 2018-05-04 Tom Tromey * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment. * utils.c (can_dump_core) : Add fall-through comment. * eval.c (fetch_subexp_value) : Add fall-through comment. * d-valprint.c (d_val_print) : Add fall-through comment. * coffread.c (coff_symtab_read) : Add fall-through comment. --- gdb/eval.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/eval.c') diff --git a/gdb/eval.c b/gdb/eval.c index 806a7023d2c..5bd6e2cbfea 100644 --- a/gdb/eval.c +++ b/gdb/eval.c @@ -215,6 +215,7 @@ fetch_subexp_value (struct expression *exp, int *pc, struct value **valp, case MEMORY_ERROR: if (!preserve_errors) break; + /* Fall through. */ default: throw_exception (ex); break; -- cgit v1.2.1