gdb: fix warnings about invalid [[fallthrough]] usage
Fix these two warnings, when building on macos: CXX cp-name-parser.o /Users/smarchi/src/binutils-gdb/gdb/cp-name-parser.y:1644:7: error: fallthrough annotation does not directly precede switch label [[fallthrough]]; ^ CXX dbxread.o /Users/smarchi/src/binutils-gdb/gdb/dbxread.c:2809:7: error: fallthrough annotation does not directly precede switch label [[fallthrough]]; ^ In these two cases, we [[fallthrough]], followed by a regular label, followed by a case label. Move the [[fallthrough]] below the regular label. Change-Id: If4a3145139e050bdb6950c7f239badd5778e6f64 Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
parent
2b33b0d960
commit
a521809d9b
2 changed files with 2 additions and 2 deletions
|
@ -1641,9 +1641,9 @@ yylex (YYSTYPE *lvalp, cpname_state *state)
|
|||
state->lexptr++;
|
||||
return '-';
|
||||
}
|
||||
[[fallthrough]];
|
||||
|
||||
try_number:
|
||||
[[fallthrough]];
|
||||
case '0':
|
||||
case '1':
|
||||
case '2':
|
||||
|
|
|
@ -2806,9 +2806,9 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, const char *name,
|
|||
case N_NBSTS:
|
||||
case N_NBLCS:
|
||||
unknown_symtype_complaint (hex_string (type));
|
||||
[[fallthrough]];
|
||||
|
||||
define_a_symbol:
|
||||
[[fallthrough]];
|
||||
/* These symbol types don't need the address field relocated,
|
||||
since it is either unused, or is absolute. */
|
||||
case N_GSYM: /* Global variable. */
|
||||
|
|
Loading…
Add table
Reference in a new issue