diff options
author | Vladimír Čunát <v@cunat.cz> | 2023-02-05 18:34:47 +0100 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2023-02-05 18:34:47 +0100 |
commit | cfc056287cb29a7bc434f0a2334b149f6a057094 (patch) | |
tree | ca179e1e48318685d498356f9cc7642878184684 /pkgs/development/libraries/belle-sip | |
parent | 52bef350535ed22e1fbf9e7ef20c437d223ee92b (diff) |
treewide: another round of gcc12 fixups
Diffstat (limited to 'pkgs/development/libraries/belle-sip')
-rw-r--r-- | pkgs/development/libraries/belle-sip/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/libraries/belle-sip/default.nix b/pkgs/development/libraries/belle-sip/default.nix index a33b9f163602a..a760685481226 100644 --- a/pkgs/development/libraries/belle-sip/default.nix +++ b/pkgs/development/libraries/belle-sip/default.nix @@ -29,12 +29,13 @@ stdenv.mkDerivation rec { # Do not build static libraries cmakeFlags = [ "-DENABLE_STATIC=NO" ]; - NIX_CFLAGS_COMPILE = toString [ + NIX_CFLAGS_COMPILE = [ "-Wno-error=cast-function-type" "-Wno-error=deprecated-declarations" "-Wno-error=format-truncation" "-Wno-error=stringop-overflow" - # Needed with GCC 12 + ] ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ + # Needed with GCC 12 but problematic with some old GCCs and probably clang "-Wno-error=use-after-free" ]; |