nbd: fix build with clang

This commit is contained in:
Nick Cao 2024-02-01 10:02:30 -05:00
parent d44f6f2eb3
commit 479c0b5f6b
No known key found for this signature in database

View file

@ -48,6 +48,9 @@ stdenv.mkDerivation rec {
"--sysconfdir=/etc"
];
# ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=implicit-function-declaration";
doCheck = !stdenv.isDarwin;
passthru.tests = {