vtk: disable function pointer warnings on GCC too (#358020)

This commit is contained in:
Emily
2024-11-22 06:15:55 +00:00
committed by GitHub
+7 -2
View File
@@ -100,8 +100,13 @@ in stdenv.mkDerivation {
"-DVTK_PYTHON_VERSION:STRING=${pythonMajor}"
];
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-function-pointer-types";
env = {
# Lots of warnings in vendored code…
NIX_CFLAGS_COMPILE =
if stdenv.cc.isClang then
"-Wno-error=incompatible-function-pointer-types"
else
"-Wno-error=incompatible-pointer-types";
};
postInstall = optionalString enablePython ''