pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/json-c Disable two warnings for Clang to unbr...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/92e6d657e385
branches:  trunk
changeset: 610480:92e6d657e385
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Oct 26 20:16:44 2012 +0000

description:
Disable two warnings for Clang to unbreak -Werror.

diffstat:

 textproc/json-c/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 4bde10269ac9 -r 92e6d657e385 textproc/json-c/Makefile
--- a/textproc/json-c/Makefile  Fri Oct 26 20:14:51 2012 +0000
+++ b/textproc/json-c/Makefile  Fri Oct 26 20:16:44 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2012/10/11 15:40:40 ryoon Exp $
+# $NetBSD: Makefile,v 1.2 2012/10/26 20:16:44 joerg Exp $
 #
 
 DISTNAME=      json-c-0.10
@@ -20,4 +20,9 @@
 
 PKGCONFIG_OVERRIDE+=   json.pc.in
 
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mclang)
+CFLAGS+=       -Wno-tautological-compare -Wno-unused-value
+.endif
+
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index