@@ -25,7 +25,12 @@ stdenv.mkDerivation {
2525 };
2626
2727 # These flags were added to compile v3.18. Try to lift them when updating.
28− NIX_CFLAGS_COMPILE = [ "-Wno-error=redundant-decls" "-Wno-error=format-nonliteral" ];
28+ NIX_CFLAGS_COMPILE = [ "-Wno-error=redundant-decls" "-Wno-error=format-nonliteral"
29+ # these flags were added to build with gcc7
30+ "-Wno-error=implicit-fallthrough"
31+ "-Wno-error=format-truncation"
32+ "-Wno-error=pointer-compare"
33+ ];
2934
3035 nativeBuildInputs = [ makeWrapper pkgconfig ];
3136 buildInputs = [ bash iproute iptables systemd coreutils gnused gawk gmp unbound bison flex pam libevent