From: Tom Tromey Date: Tue, 27 Sep 2016 17:23:49 +0000 (-0600) Subject: Add missing ATTRIBUTE_NORETURNs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=621846f4e258167be2147894e013c85e42de1447;p=binutils-gdb.git Add missing ATTRIBUTE_NORETURNs This patch adds a missing ATTRIBUTE_NORETURN. This lets -Wimplicit-fallthrough recognize that a given case does not fall through. ChangeLog 2018-05-04 Tom Tromey * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b7ae0e3d2bc..d627749de61 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2018-05-04 Tom Tromey + + * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN. + 2018-05-04 Tom Tromey * s390-tdep.c (s390_process_record): Fix fall-through comments. diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c index 78d46688bcf..6ecc5a9be6c 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -2865,7 +2865,7 @@ dwarf2_loc_desc_get_symbol_read_needs (const gdb_byte *data, size_t size, /* A helper function that throws an unimplemented error mentioning a given DWARF operator. */ -static void +static void ATTRIBUTE_NORETURN unimplemented (unsigned int op) { const char *name = get_DW_OP_name (op);