libbacktrace: use __attribute__((__fallthrough__))
commitd962ef77dadea87b2bf30487bddda00c350bf0ba
authorIan Lance Taylor <iant@golang.org>
Tue, 20 Oct 2020 18:47:35 +0000 (20 11:47 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 20 Oct 2020 18:49:58 +0000 (20 11:49 -0700)
tree258889e52b0c95589f726d511bb1e87a7d77f910
parente864d395b4e862cece37abe178e7ebd631b5348b
libbacktrace: use __attribute__((__fallthrough__))

Use an attribute rather than a comment when falling through a switch case.

* internal.h (ATTRIBUTE_FALLTHROUGH): Define.
* elf.c (elf_zlib_inflate): Use ATTRIBUTE_FALLTHROUGH.
libbacktrace/elf.c
libbacktrace/internal.h