dhcp: fix compilation on gcc8 (#40605)

This commit is contained in:
Patrick Hilhorst 2018-05-16 23:36:32 +02:00 committed by xeji
parent 283a61a800
commit 5c225ca10c

View file

@ -33,7 +33,10 @@ stdenv.mkDerivation rec {
"--localstatedir=/var"
] ++ stdenv.lib.optionals (openldap != null) [ "--with-ldap" "--with-ldapcrypto" ];
NIX_CFLAGS_COMPILE = [ "-Wno-error=pointer-compare" ];
NIX_CFLAGS_COMPILE = [
"-Wno-error=pointer-compare"
"-Wno-error=format-truncation"
];
installFlags = [ "DESTDIR=\${out}" ];