pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/binutils Hide some potential bugs by disabling d...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/56004503219f
branches:  trunk
changeset: 592492:56004503219f
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Sep 07 23:41:04 2011 +0000

description:
Hide some potential bugs by disabling default warnings with clang.

diffstat:

 devel/binutils/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r ae080ede19f0 -r 56004503219f devel/binutils/Makefile
--- a/devel/binutils/Makefile   Wed Sep 07 23:40:23 2011 +0000
+++ b/devel/binutils/Makefile   Wed Sep 07 23:41:04 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2011/08/22 08:51:46 wiz Exp $
+# $NetBSD: Makefile,v 1.40 2011/09/07 23:41:04 joerg Exp $
 
 DISTNAME=      binutils-2.17
 PKGREVISION=   1
@@ -44,6 +44,12 @@
 PLIST.gprof=   yes
 .endif
 
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mclang)
+CFLAGS+=       -Wno-unused-value -Wno-format-security \
+               -Wno-uninitialized -Wno-format
+.endif
+
 # Prevent the need to run texi2pod.pl and pod2man hence
 # the need for perl as build dependency.
 #



Home | Main Index | Thread Index | Old Index