]> git.ipfire.org Git - thirdparty/bind9.git/commit
Remove usage of deprecated ATOMIC_VAR_INIT() macro
authorOndřej Surý <ondrej@isc.org>
Tue, 8 Mar 2022 22:55:10 +0000 (23:55 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 17 Mar 2022 20:44:04 +0000 (21:44 +0100)
commit25732d818dfaec433b31938f7220c2be69e87d99
tree23aef30302a1294f0147b9498d9a66986b1d9802
parent87cd66163858ea130d0810ed759222565a95e857
Remove usage of deprecated ATOMIC_VAR_INIT() macro

The C17 standard deprecated ATOMIC_VAR_INIT() macro (see [1]).  Follow
the suite and remove the ATOMIC_VAR_INIT() usage in favor of simple
assignment of the value as this is what all supported stdatomic.h
implementations do anyway:

  * MacOSX.plaform: #define ATOMIC_VAR_INIT(__v) {__v}
  * Gcc stdatomic.h: #define ATOMIC_VAR_INIT(VALUE) (VALUE)

1. http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1138r0.pdf

(cherry picked from commit f251d69ebad6f17190c890829897a2bc8f7d6783)
17 files changed:
bin/dig/dig.c
bin/rndc/rndc.c
lib/dns/rbtdb.c
lib/dns/tests/dispatch_test.c
lib/isc/app.c
lib/isc/include/isc/mutexatomic.h
lib/isc/mem.c
lib/isc/netmgr/tcp.c
lib/isc/netmgr/tcpdns.c
lib/isc/tests/netmgr_test.c
lib/isc/tests/quota_test.c
lib/isc/tests/uv_wrap.h
lib/isc/tls.c
lib/isc/unix/include/isc/stdatomic.h
lib/isc/win32/include/isc/stdatomic.h
lib/ns/client.c
lib/ns/tests/nstest.c