pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/xenkernel45 -Wmaybe-uninitialized doesn't exi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7ec0b2832e2e
branches:  trunk
changeset: 348486:7ec0b2832e2e
user:      prlw1 <prlw1%pkgsrc.org@localhost>
date:      Tue Jun 14 15:38:54 2016 +0000

description:
-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:

 sysutils/xenkernel45/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c68f060522b9 -r 7ec0b2832e2e sysutils/xenkernel45/Makefile
--- a/sysutils/xenkernel45/Makefile     Tue Jun 14 13:33:05 2016 +0000
+++ b/sysutils/xenkernel45/Makefile     Tue Jun 14 15:38:54 2016 +0000
@@ -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 @@
                -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
 



Home | Main Index | Thread Index | Old Index