]> git.ipfire.org Git - thirdparty/bind9.git/commit
Remove priority from attribute constructor/destructor
authorMark Andrews <marka@isc.org>
Wed, 19 May 2021 06:38:33 +0000 (16:38 +1000)
committerOndřej Surý <ondrej@sury.org>
Thu, 27 May 2021 06:02:21 +0000 (08:02 +0200)
commitd68b009cfec31ddef2bb4f4909f86746cbce42e3
treee2bf1ce3c0c98eb12f306262ebee2cb50ee4464e
parent728422d939a6686732b7c3647cf2db2ba8a08787
Remove priority from attribute constructor/destructor

On some platforms, the __attribute__ constructor and destructor won't
take priorities and the compilation failed.  On such platform would be
macOS.  For this reason, the constructor/destructor in the libisc was
reworked to not use priorities, but have a single constructor and
destructor that calls the appropriate routines in correct order.

This commit removes the extra priority because it's now not needed and
it also breaks a compilation on macOS with GCC 10.
lib/isc/include/isc/util.h
lib/isc/lib.c