git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #68661 from JohnAZoidberg/xen-gcc8

xen: Ignore GCC8 errors

commitda28be646f4613d521bc28fea0bbec19eeb2468b authorRobin Gloster <mail@glob.in> dateFri 13 Sep 2019, 23:28 (7 years ago) parentc53d6f9dc0e697
1 file changed+9−2
pkgs/applications/virtualization/xen/4.8.nix+9−2
pkgs/applications/virtualization/xen/4.8.nix+9−2
@@ -167,8 +167,15 @@ callPackage (import ./generic.nix (rec {
167167 xenpmdpatch
168168 ];
169169
170− # Fix build on Glibc 2.24.
171− NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
170+ NIX_CFLAGS_COMPILE = [
171+ # Fix build on Glibc 2.24
172+ "-Wno-error=deprecated-declarations"
173+ # Fix build with GCC8
174+ "-Wno-error=maybe-uninitialized"
175+ "-Wno-error=stringop-truncation"
176+ "-Wno-error=format-truncation"
177+ "-Wno-error=array-bounds"
178+ ];
172179
173180 postPatch = ''
174181 # Avoid a glibc >= 2.25 deprecation warnings that get fatal via -Werror.