furnace, tvheadend: more fallout from gcc upgrade
This commit is contained in:
parent
95d2ac73cc
commit
b5ace1ffc0
2 changed files with 4 additions and 3 deletions
|
@ -63,8 +63,8 @@ stdenv.mkDerivation rec {
|
|||
"-DWARNINGS_ARE_ERRORS=ON"
|
||||
];
|
||||
|
||||
NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [
|
||||
# Needed with GCC 12 but breaks on darwin (with clang)
|
||||
NIX_CFLAGS_COMPILE = lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [
|
||||
# Needed with GCC 12 but breaks on darwin (with clang) or aarch64 (old gcc)
|
||||
"-Wno-error=mismatched-new-delete"
|
||||
"-Wno-error=use-after-free"
|
||||
];
|
||||
|
|
|
@ -78,7 +78,8 @@ in stdenv.mkDerivation {
|
|||
NIX_CFLAGS_COMPILE = [
|
||||
"-Wno-error=format-truncation"
|
||||
"-Wno-error=stringop-truncation"
|
||||
# Needed with GCC 12
|
||||
] ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [
|
||||
# Needed with GCC 12 but unrecognized with GCC 9
|
||||
"-Wno-error=use-after-free"
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue