diff options
author | Tom Tromey <tom@tromey.com> | 2016-09-27 11:28:18 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-05-04 22:04:46 -0600 |
commit | 565e0edacc48c86adfb12515ed6911c08c1f64d9 (patch) | |
tree | 6c3259b9f9037b2dfda5f38905c87c2358cc57d5 /gdb/utils.c | |
parent | 621846f4e258167be2147894e013c85e42de1447 (diff) | |
download | gdb-565e0edacc48c86adfb12515ed6911c08c1f64d9.zip gdb-565e0edacc48c86adfb12515ed6911c08c1f64d9.tar.gz gdb-565e0edacc48c86adfb12515ed6911c08c1f64d9.tar.bz2 |
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 <tom@tromey.com>
* riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
* utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
* eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
comment.
* d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
comment.
* coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
comment.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index e274f02..63929b2 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -275,6 +275,7 @@ can_dump_core (enum resource_limit_kind limit_kind) case LIMIT_CUR: if (rlim.rlim_cur == 0) return 0; + /* Fall through. */ case LIMIT_MAX: if (rlim.rlim_max == 0) |