hdf4: fix build with clang 16

This commit is contained in:
Weijia Wang 2023-11-01 00:34:36 +01:00
parent 66bcff76eb
commit d5f9e4c783

View file

@ -95,6 +95,13 @@ stdenv.mkDerivation rec {
else [ "-DHDF4_BUILD_FORTRAN=OFF" ]
);
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = toString [
"-Wno-error=implicit-function-declaration"
"-Wno-error=implicit-int"
];
};
doCheck = true;
excludedTests = lib.optionals stdenv.isDarwin [