From ece849cc77210b1397c93d4485d2cbedce0010ac Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Fri, 20 Dec 2024 02:50:03 -0800 Subject: [PATCH] python313Packages.pillow-heif: remove -Werror clang fails due a warning switching `-Ofast` -> `-O3` while building with `-Werror`. --- pkgs/development/python-modules/pillow-heif/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pillow-heif/default.nix b/pkgs/development/python-modules/pillow-heif/default.nix index caa81ce9720b2..e82da56c95b45 100644 --- a/pkgs/development/python-modules/pillow-heif/default.nix +++ b/pkgs/development/python-modules/pillow-heif/default.nix @@ -40,6 +40,8 @@ buildPythonPackage rec { postPatch = '' sed -i '/addopts/d' pyproject.toml + substituteInPlace setup.py \ + --replace-warn ', "-Werror"' "" ''; nativeBuildInputs = [ @@ -60,9 +62,6 @@ buildPythonPackage rec { ]; env = { - # clang-16: error: argument unused during compilation: '-fno-strict-overflow' - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-unused-command-line-argument"; - RELEASE_FULL_FLAG = 1; };