diff options
author | Tom Tromey <tom@tromey.com> | 2023-10-15 11:09:07 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-11-29 14:29:43 -0700 |
commit | d182e39881061b11d1eb85426d9a6953e3171bf5 (patch) | |
tree | c292f0615eee648207c86ae7035479cb518ea81a /gdb/compile/compile-c-symbols.c | |
parent | a0dc1f9a12a4394463b9dbf5927166f2ab8518a6 (diff) | |
download | gdb-d182e39881061b11d1eb85426d9a6953e3171bf5.zip gdb-d182e39881061b11d1eb85426d9a6953e3171bf5.tar.gz gdb-d182e39881061b11d1eb85426d9a6953e3171bf5.tar.bz2 |
Use C++17 [[fallthrough]] attribute
This changes gdb to use the C++17 [[fallthrough]] attribute rather
than special comments.
This was mostly done by script, but I neglected a few spellings and so
also fixed it up by hand.
I suspect this fixes the bug mentioned below, by switching to a
standard approach that, presumably, clang supports.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=23159
Approved-By: John Baldwin <jhb@FreeBSD.org>
Approved-By: Luis Machado <luis.machado@arm.com>
Approved-By: Pedro Alves <pedro@palves.net>
Diffstat (limited to 'gdb/compile/compile-c-symbols.c')
-rw-r--r-- | gdb/compile/compile-c-symbols.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/compile/compile-c-symbols.c b/gdb/compile/compile-c-symbols.c index 5982178..a80b9a4 100644 --- a/gdb/compile/compile-c-symbols.c +++ b/gdb/compile/compile-c-symbols.c @@ -136,7 +136,7 @@ convert_one_symbol (compile_c_instance *context, "be referenced from the current thread in " "compiled code."), sym.symbol->print_name ()); - /* FALLTHROUGH */ + [[fallthrough]]; case LOC_UNRESOLVED: /* 'symbol_name' cannot be used here as that one is used only for local variables from compile_dwarf_expr_to_c. |