bind9/lib
Ondřej Surý b4521486ed Use C2x [[fallthrough]] when supported by LLVM/clang
Clang added support for the gcc-style fallthrough
attribute (i.e. __attribute__((fallthrough))) in version 10.  However,
__has_attribute(fallthrough) will return 1 in C mode in older versions,
even though they only support the C++11 fallthrough attribute. At best,
the unsupported attribute is simply ignored; at worst, it causes errors.

The C2x fallthrough attribute has the advantages of being supported in
the broadest range of clang versions (added in version 9) and being easy
to check for support. Use C2x [[fallthrough]] attribute if possible, and
fall back to not using an attribute for clang versions that don't have
it.

Courtesy of Joshua Root

(cherry picked from commit 14c8d43863)
2022-05-19 22:01:59 +02:00
..
bind9 prevent a possible buffer overflow in configuration check 2022-05-13 20:29:36 -07:00
dns Check if key metadata is modified before writing 2022-05-16 10:37:23 +02:00
irs Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
isc Use C2x [[fallthrough]] when supported by LLVM/clang 2022-05-19 22:01:59 +02:00
isccc Remove use of the inline keyword used as suggestion to compiler 2022-03-25 08:42:18 +01:00
isccfg Rename "hostname" to "remote-hostname" within "tls" 2022-05-03 17:42:43 +03:00
ns Cleanup: always count ns_statscounter_recursclients 2022-05-14 00:59:09 -07:00
.gitignore The isc/platform.h header has been completely removed 2021-07-06 05:33:48 +00:00
Makefile.am move samples/resolve.c to bin/tests/system 2021-04-16 14:29:43 +02:00
unit-test-driver.sh.in Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00