From: Ondřej Surý Date: Mon, 19 Aug 2024 09:09:09 +0000 (+0000) Subject: fix: dev: Change the NS_PER_SEC (and friends) from enum to static const X-Git-Tag: v9.21.1~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d12e1142ae04157cf1b3210d662a9dad3f6477d;p=thirdparty%2Fbind9.git fix: dev: Change the NS_PER_SEC (and friends) from enum to static const 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 static const unsigned int instead of enum values. Closes #4845 Merge branch '4845-change-NS_PER_SEC-type-from-enum-to-integer' into 'main' Closes #4845 See merge request isc-projects/bind9!9313 --- 2d12e1142ae04157cf1b3210d662a9dad3f6477d