]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add FALLTHROUGH macro for __attribute__((fallthrough))
authorOndřej Surý <ondrej@sury.org>
Mon, 11 Oct 2021 10:09:16 +0000 (12:09 +0200)
committerOndřej Surý <ondrej@isc.org>
Fri, 25 Mar 2022 07:33:43 +0000 (08:33 +0100)
commitfe7ce629f47e7a0449b7527aad3c0b4e596b1f4e
tree69fe2f536bf92132cd8125cfbdf005995c6a01d7
parent4a44e9dd36fcde1911e44389935090d61129fb70
Add FALLTHROUGH macro for __attribute__((fallthrough))

Gcc 7+ and Clang 10+ have implemented __attribute__((fallthrough)) which
is explicit version of the /* FALLTHROUGH */ comment we are currently
using.

Add and apply FALLTHROUGH macro that uses the attribute if available,
but does nothing on older compilers.

In one case (lib/dns/zone.c), using the macro revealed that we were
using the /* FALLTHROUGH */ comment in wrong place, remove that comment.
41 files changed:
bin/check/named-checkconf.c
bin/check/named-checkzone.c
bin/dig/host.c
bin/dnssec/dnssec-dsfromkey.c
bin/dnssec/dnssec-importkey.c
bin/dnssec/dnssec-keyfromlabel.c
bin/dnssec/dnssec-keygen.c
bin/dnssec/dnssec-revoke.c
bin/dnssec/dnssec-settime.c
bin/dnssec/dnssec-signzone.c
bin/dnssec/dnssec-verify.c
bin/named/main.c
bin/named/zoneconf.c
bin/rndc/rndc.c
contrib/dlz/modules/wildcard/dlz_wildcard_dynamic.c
doc/dev/style.md
lib/bind9/getaddresses.c
lib/dns/dispatch.c
lib/dns/dnssec.c
lib/dns/dnstap.c
lib/dns/masterdump.c
lib/dns/name.c
lib/dns/rbtdb.c
lib/dns/rdata/generic/opt_41.c
lib/dns/resolver.c
lib/dns/rootns.c
lib/dns/rpz.c
lib/dns/update.c
lib/dns/validator.c
lib/dns/xfrin.c
lib/dns/zone.c
lib/isc/include/isc/util.h
lib/isc/lex.c
lib/isc/log.c
lib/isc/netmgr/netmgr.c
lib/isc/ratelimiter.c
lib/isc/siphash.c
lib/isc/tm.c
lib/isc/url.c
lib/isccfg/aclconf.c
lib/ns/query.c