Unverified Commit c31f399f authored by Randy Eckenrode's avatar Randy Eckenrode
Browse files

_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.
parent dba6d77a
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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;