Merge pull request #68661 from JohnAZoidberg/xen-gcc8

xen: Ignore GCC8 errors
This commit is contained in:
Robin Gloster 2019-09-13 23:28:20 +02:00 committed by GitHub
commit da28be646f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.