summaryrefslogtreecommitdiff
path: root/sysutils/xenkernel45
diff options
context:
space:
mode:
authorprlw1 <prlw1@pkgsrc.org>2016-06-14 15:38:54 +0000
committerprlw1 <prlw1@pkgsrc.org>2016-06-14 15:38:54 +0000
commit986dfa4d20773f82d304eecdfa1f067f4247a9a5 (patch)
treec434a75ae572dd5d038d275b3ddb3c19352b66c6 /sysutils/xenkernel45
parent966d0487b9df8b727834df6e6fe4f0c509580716 (diff)
downloadpkgsrc-986dfa4d20773f82d304eecdfa1f067f4247a9a5.tar.gz
-Wmaybe-uninitialized doesn't exist for NetBSD 6's gcc 4.5.3 and
breaks the build. It does exist in NetBSD 7's gcc 4.8.4, but the build is successful without it. So only apply the flag for gcc 5, as it is necessary for 5.4.0. Report from jnemeth@
Diffstat (limited to 'sysutils/xenkernel45')
-rw-r--r--sysutils/xenkernel45/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysutils/xenkernel45/Makefile b/sysutils/xenkernel45/Makefile
index deb171c74a2..3322ee848a1 100644
--- a/sysutils/xenkernel45/Makefile
+++ b/sysutils/xenkernel45/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2016/05/21 16:07:01 prlw1 Exp $
+# $NetBSD: Makefile,v 1.16 2016/06/14 15:38:54 prlw1 Exp $
VERSION= 4.5.3
DISTNAME= xen-${VERSION}
@@ -36,7 +36,7 @@ EXTRA_CFLAGS+= -Qunused-arguments -no-integrated-as -Wno-error=format \
-Wno-error=unused-function -Wno-error=unused-const-variable \
-Wno-error=ignored-attributes -Wno-error=initializer-overrides
.endif
-.if !empty(PKGSRC_COMPILER:Mgcc)
+.if !empty(CC_VERSION:Mgcc-5*)
EXTRA_CFLAGS+= -Wno-error=maybe-uninitialized
.endif