diff options
author | Artturi <Artturin@artturin.com> | 2023-09-07 05:46:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-07 05:46:11 +0300 |
commit | 8988d5804b1dd13257cceedf59440229f434b6f8 (patch) | |
tree | 743f07949965897a7cfc9ea28eb595f5ab03d069 /pkgs/tools/archivers | |
parent | 0974af1058439bcb2d17eac0f2c43ab88c213ff2 (diff) | |
parent | c31f399f1ca04e5240ea14090713df230bf89375 (diff) |
Merge pull request #253740 from reckenrode/_7zz-fix
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; |