qpmulti.c:150:55: error: arithmetic between floating-point type 'double' and enumeration type 'enum (unnamed at ../../lib/isc/include/isc/time.h:23:1)'
Clang 19.1.0 RC2 (19.1.0~++20240812093221+4fd6b324ea2d-1~exp1~20240812093342.21
) in clang:bookworm:amd64
and clang:bullseye:amd64
jobs that are built with -Wenum-conversion
fails to compile BIND 9.
qpmulti.c:150:55: error: arithmetic between floating-point type 'double' and enumeration type 'enum (unnamed at ../../lib/isc/include/isc/time.h:23:1)' [-Werror,-Wenum-float-conversion]
150 | double time = (double)(isc_time_monotonic() - start) / NS_PER_SEC;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
qpmulti.c:224:33: error: arithmetic between floating-point type 'double' and enumeration type 'enum (unnamed at ../../lib/isc/include/isc/time.h:23:1)' [-Werror,-Wenum-float-conversion]
224 | if (args->stop - args->start < RUNTIME) {
| ^~~~~~~
qpmulti.c:50:25: note: expanded from macro 'RUNTIME'
50 | #define RUNTIME (0.25 * NS_PER_SEC)
| ~~~~ ^ ~~~~~~~~~~
qpmulti.c:518:37: error: arithmetic between floating-point type 'double' and enumeration type 'enum (unnamed at ../../lib/isc/include/isc/time.h:23:1)' [-Werror,-Wenum-float-conversion]
518 | bctx->load_time = bctx->zipf_skew * NS_PER_SEC;
| ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
qpmulti.c:522:37: error: arithmetic between floating-point type 'double' and enumeration type 'enum (unnamed at ../../lib/isc/include/isc/time.h:23:1)' [-Werror,-Wenum-float-conversion]
522 | bctx->load_time = bctx->zipf_skew * NS_PER_SEC;
| ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
qpmulti.c:774:20: error: arithmetic between floating-point type 'double' and enumeration type 'enum (unnamed at ../../lib/isc/include/isc/time.h:23:1)' [-Werror,-Wenum-float-conversion]
774 | printf("%7.3f\t", RUNTIME / (double)NS_PER_SEC);
| ^~~~~~~
qpmulti.c:50:25: note: expanded from macro 'RUNTIME'
50 | #define RUNTIME (0.25 * NS_PER_SEC)
| ~~~~ ^ ~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/stdio2.h:90:42: note: expanded from macro 'printf'
90 | __printf_chk (__USE_FORTIFY_LEVEL - 1, __VA_ARGS__)
| ^~~~~~~~~~~
5 errors generated.
Clang 19 hasn't been merged to production CI yet, see isc-projects/images!328.