diff options
author | Randy Eckenrode <randy@largeandhighquality.com> | 2023-09-06 19:11:45 -0400 |
---|---|---|
committer | Randy Eckenrode <randy@largeandhighquality.com> | 2023-09-06 19:24:26 -0400 |
commit | c31f399f1ca04e5240ea14090713df230bf89375 (patch) | |
tree | 76b9ce77cc1dd08752b9b15044f2c2d82cbb36d5 /pkgs/tools/archivers | |
parent | dba6d77ad232e3a5ffc5e281ebbada4fe0e23981 (diff) |
_7zz: fix build with clang 13+
7zz uses `-Weverything` and `-Werror`, which results in normally disabled warnings breaking the build with newer versions of clang.
Diffstat (limited to 'pkgs/tools/archivers')
-rw-r--r-- | pkgs/tools/archivers/7zz/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/tools/archivers/7zz/default.nix b/pkgs/tools/archivers/7zz/default.nix index 6df03f1d83d26..48b072b0cf4b6 100644 --- a/pkgs/tools/archivers/7zz/default.nix +++ b/pkgs/tools/archivers/7zz/default.nix @@ -69,6 +69,16 @@ stdenv.mkDerivation (finalAttrs: { ] ++ lib.optionals stdenv.hostPlatform.isMinGW [ "-Wno-conversion" "-Wno-unused-macros" + ] ++ lib.optionals stdenv.cc.isClang [ + "-Wno-declaration-after-statement" + (lib.optionals (lib.versionAtLeast (lib.getVersion stdenv.cc.cc) "13") [ + "-Wno-reserved-identifier" + "-Wno-unused-but-set-variable" + ]) + (lib.optionals (lib.versionAtLeast (lib.getVersion stdenv.cc.cc) "16") [ + "-Wno-unsafe-buffer-usage" + "-Wno-cast-function-type-strict" + ]) ]); inherit makefile; |