Here's nbdkit compiled with clang 14:
https://gitlab.com/nbdkit/nbdkit/-/jobs/2814022460
checking whether clang is Clang... yes [...] checking if __attribute__((cleanup(...))) works with this compiler... yes
Here's nbdkit compiled with clang 14:
https://gitlab.com/nbdkit/nbdkit/-/jobs/2814022460