furnace, tvheadend: more fallout from gcc upgrade

This commit is contained in:
Vladimír Čunát 2023-02-12 12:57:11 +01:00
parent 95d2ac73cc
commit b5ace1ffc0
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA
2 changed files with 4 additions and 3 deletions

View file

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

View file

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