xen: Ignore GCC8 errors

This commit is contained in:
Daniel Schaefer 2019-09-13 15:12:18 +02:00
parent 1987bddea8
commit dc0e697038

View File

@ -167,8 +167,15 @@ callPackage (import ./generic.nix (rec {
xenpmdpatch
];
# Fix build on Glibc 2.24.
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
NIX_CFLAGS_COMPILE = [
# Fix build on Glibc 2.24
"-Wno-error=deprecated-declarations"
# Fix build with GCC8
"-Wno-error=maybe-uninitialized"
"-Wno-error=stringop-truncation"
"-Wno-error=format-truncation"
"-Wno-error=array-bounds"
];
postPatch = ''
# Avoid a glibc >= 2.25 deprecation warnings that get fatal via -Werror.