cjdns: don't set -Wno-error=stringop-overread with gcc<11

The build would error out on aarch64-linux with

> cc1: error: '-Werror=stringop-overread': no option -Wstringop-overread
This commit is contained in:
Martin Weinelt 2022-04-17 02:57:03 +02:00
parent 18ee7a21b1
commit c705239a5d
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -19,8 +19,9 @@ stdenv.mkDerivation rec {
"-O2"
"-Wno-error=array-bounds"
"-Wno-error=stringop-overflow"
"-Wno-error=stringop-overread"
"-Wno-error=stringop-truncation"
] ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "11") [
"-Wno-error=stringop-overread"
];
buildPhase =