pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/json-c json-c: Disable implicit ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f6135c9df913
branches:  trunk
changeset: 307835:f6135c9df913
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Mon May 14 10:08:00 2018 +0000
description:
json-c: Disable implicit fallthrough warnings.

This package uses them pretty heavily.

diffstat:

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

diffs (18 lines):

diff -r d763ffd149fe -r f6135c9df913 textproc/json-c/Makefile
--- a/textproc/json-c/Makefile  Mon May 14 09:44:01 2018 +0000
+++ b/textproc/json-c/Makefile  Mon May 14 10:08:00 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2016/06/12 14:37:37 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2018/05/14 10:08:00 jperkin Exp $
 
 DISTNAME=      json-c-0.12.1
 CATEGORIES=    textproc
@@ -29,4 +29,8 @@
 BUILDLINK_TRANSFORM+=  rm:-Werror rm:-Wno-error=deprecated-declarations
 .endif
 
+.if !empty(CC_VERSION:Mgcc-[789].*)
+CFLAGS+=       -Wimplicit-fallthrough=0
+.endif
+
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index