cjdns: add extra -Wno-error for gcc11

This commit is contained in:
Fabián Heredia Montiel 2022-04-15 23:47:01 -05:00
parent e91da70b45
commit 9028cd4eff

View file

@ -15,7 +15,14 @@ stdenv.mkDerivation rec {
# for flock
lib.optional stdenv.isLinux util-linux;
CFLAGS = "-O2 -Wno-error=stringop-truncation";
NIX_CFLAGS_COMPILE = [
"-O2"
"-Wno-error=array-bounds"
"-Wno-error=stringop-overflow"
"-Wno-error=stringop-overread"
"-Wno-error=stringop-truncation"
];
buildPhase =
lib.optionalString stdenv.isAarch32 "Seccomp_NO=1 "
+ "bash do";