From 049efb917104b2476b4aaf13fa1a5b7444621baf Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sat, 1 May 2021 11:35:07 +0000 Subject: [PATCH] xen: fix build with GCC 10 Fixes: https://github.com/NixOS/nixpkgs/issues/108479 --- pkgs/applications/virtualization/xen/4.10.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/virtualization/xen/4.10.nix b/pkgs/applications/virtualization/xen/4.10.nix index bc9003e128a4..765baa0a3b4d 100644 --- a/pkgs/applications/virtualization/xen/4.10.nix +++ b/pkgs/applications/virtualization/xen/4.10.nix @@ -160,6 +160,9 @@ callPackage (import ./generic.nix (rec { "-Wno-error=address-of-packed-member" "-Wno-error=format-overflow" "-Wno-error=absolute-value" + # Fix build with GCC 10 + "-Wno-error=enum-conversion" + "-Wno-error=zero-length-bounds" ]; postPatch = ''