diff --git a/gdb/cp-name-parser.y b/gdb/cp-name-parser.y index 9a359d47b65..6f9305e15df 100644 --- a/gdb/cp-name-parser.y +++ b/gdb/cp-name-parser.y @@ -1641,9 +1641,9 @@ yylex (YYSTYPE *lvalp, cpname_state *state) state->lexptr++; return '-'; } - [[fallthrough]]; try_number: + [[fallthrough]]; case '0': case '1': case '2': diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 99d9fba96ea..ebfd48e29cd 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -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. */