summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorkamil <kamil@pkgsrc.org>2019-09-24 16:08:29 +0000
committerkamil <kamil@pkgsrc.org>2019-09-24 16:08:29 +0000
commite1badc1034607c71f6669765ae0e5f67dad4b5f4 (patch)
treedb138c16f6f7c81418e3b9cdce9726741578a656 /textproc
parent1c2c329bb5ad616404b9378b20d71da9eb9712f4 (diff)
downloadpkgsrc-e1badc1034607c71f6669765ae0e5f67dad4b5f4.tar.gz
json-c: Fix build with clang10svn
Drop -Werror due to -Werror,-Wimplicit-int-float-conversion. Issie fixed upstream in: https://github.com/json-c/json-c/commit/d0b87ee87b282e9b91a1af924050e217b0b2ae8b.patch Keep another rm:-Werror for gcc3/4, in order to not change the bahavior once this package will be upgraded.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/json-c/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/textproc/json-c/Makefile b/textproc/json-c/Makefile
index d851e7a10c2..d3140a0ed04 100644
--- a/textproc/json-c/Makefile
+++ b/textproc/json-c/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2018/08/04 09:53:05 adam Exp $
+# $NetBSD: Makefile,v 1.14 2019/09/24 16:08:29 kamil Exp $
DISTNAME= json-c-0.13.1
CATEGORIES= textproc
@@ -17,6 +17,8 @@ TEST_TARGET= check
.include "../../mk/compiler.mk"
+BUILDLINK_TRANSFORM+= rm:-Werror # -Werror,-Wimplicit-int-float-conversion fixed in https://github.com/json-c/json-c/commit/d0b87ee87b282e9b91a1af924050e217b0b2ae8b.patch
+
# gcc < 4.2 does not have -Wno-error= option.
.if !empty(CC_VERSION:Mgcc-3*) || !empty(CC_VERSION:Mgcc-4.[01]*)
BUILDLINK_TRANSFORM+= rm:-Werror rm:-Wno-error=deprecated-declarations