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 fallthrough w...
details: https://anonhg.NetBSD.org/pkgsrc/rev/af940ba588f7
branches: trunk
changeset: 380254:af940ba588f7
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 41c1d4d35603 -r af940ba588f7 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