packetdrill: fix build with gcc9

This commit is contained in:
Franz Pletz 2019-11-03 13:44:26 +01:00
parent 9398fbe97b
commit cb08ffe4c5
No known key found for this signature in database
GPG key ID: 846FDED7792617B4

View file

@ -11,7 +11,11 @@ stdenv.mkDerivation {
setSourceRoot = ''
export sourceRoot=$(realpath */gtests/net/packetdrill)
'';
NIX_CFLAGS_COMPILE = "-Wno-error=unused-result";
NIX_CFLAGS_COMPILE = [
"-Wno-error=unused-result"
"-Wno-error=stringop-truncation"
"-Wno-error=address-of-packed-member"
];
nativeBuildInputs = [ bison flex ];
patches = [ ./nix.patch ];
enableParallelBuilding = true;