]> git.ipfire.org Git - thirdparty/bind9.git/commit
[9.18] fix: dev: Change the NS_PER_SEC (and friends) from enum to #define
authorOndřej Surý <ondrej@isc.org>
Mon, 19 Aug 2024 15:32:14 +0000 (15:32 +0000)
committerOndřej Surý <ondrej@isc.org>
Mon, 19 Aug 2024 15:32:14 +0000 (15:32 +0000)
commit0da22fc138e52b3346693fb3afb7bb72e01300f0
treeb332d9a527735cc1472ac8742725536546b39e1c
parent26df9f6255bd4da9062a3028b12168995d4ab7fa
parenta49079c84c383b7b0b592edb266048ac14757492
[9.18] fix: dev: Change the NS_PER_SEC (and friends) from enum to #define

New version of clang (19) has introduced a stricter checks when mixing
integer (and float types) with enums.  In this case, we used enum {}
as C17 doesn't have constexpr yet.  Change the time conversion constants
to be #defined constants because of RHEL 8 compiler doesn't consider
static const unsigned int to be constant.

Closes #4845

Backport of MR !9313

Merge branch 'backport-4845-change-NS_PER_SEC-type-from-enum-to-integer-9.18' into 'bind-9.18'

See merge request isc-projects/bind9!9340