_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.
This commit is contained in:
Randy Eckenrode 2023-09-06 19:11:45 -04:00
parent dba6d77ad2
commit c31f399f1c
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9

View File

@ -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;