From 7cabe4071efcc511915084786633698b3f3ea9c8 Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 7 Dec 2011 15:22:28 +0000 Subject: [PATCH] Disable -Wswitch for newer GCC versions --- sysutils/xentools3/distinfo | 3 ++- sysutils/xentools3/patches/patch-.._patch-Config.mk | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 sysutils/xentools3/patches/patch-.._patch-Config.mk diff --git a/sysutils/xentools3/distinfo b/sysutils/xentools3/distinfo index bdda88a6b59ac..b7af5ea292677 100644 --- a/sysutils/xentools3/distinfo +++ b/sysutils/xentools3/distinfo @@ -1,8 +1,9 @@ -$NetBSD: distinfo,v 1.12 2009/03/05 19:43:32 bouyer Exp $ +$NetBSD: distinfo,v 1.13 2011/12/07 15:22:28 joerg Exp $ SHA1 (xen-3.1.4.tar.gz) = 0d784662776239195df10b3f29d40350f9d0644d RMD160 (xen-3.1.4.tar.gz) = c02ad2bd64e6306b127a4f37a8aa370dadc11859 Size (xen-3.1.4.tar.gz) = 6894493 bytes +SHA1 (patch-.._patch-Config.mk) = af18346fb13d1dc9e56e7d01057d2cebfbbaba14 SHA1 (patch-aa) = dca8b8de73b9bdbb17f8245224575eb881cdf00d SHA1 (patch-ab) = dcafc8b6c4cd1e4dfc6f4ec806fd8076b3104b86 SHA1 (patch-ac) = d6d895e0361194cd84da13c42e17e17efecae7dd diff --git a/sysutils/xentools3/patches/patch-.._patch-Config.mk b/sysutils/xentools3/patches/patch-.._patch-Config.mk new file mode 100644 index 0000000000000..5776172af842b --- /dev/null +++ b/sysutils/xentools3/patches/patch-.._patch-Config.mk @@ -0,0 +1,13 @@ +$NetBSD: patch-.._patch-Config.mk,v 1.1 2011/12/07 15:22:28 joerg Exp $ + +--- ../Config.mk.orig 2011-12-07 10:40:48.000000000 +0000 ++++ ../Config.mk +@@ -70,7 +70,7 @@ CFLAGS += -Wall -Wstrict-prototypes + + # -Wunused-value makes GCC 4.x too aggressive for my taste: ignoring the + # result of any casted expression causes a warning. +-CFLAGS += -Wno-unused-value ++CFLAGS += -Wno-unused-value -Wno-switch + + HOSTCFLAGS += $(call cc-option,$(HOSTCC),-Wdeclaration-after-statement,) + CFLAGS += $(call cc-option,$(CC),-Wdeclaration-after-statement,)