pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/json-glib Make some int cast warnings non-fat...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dcd5fa02da03
branches:  trunk
changeset: 425091:dcd5fa02da03
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Mar 18 18:01:23 2020 +0000

description:
Make some int cast warnings non-fatal for clang

diffstat:

 textproc/json-glib/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 265c94a889fc -r dcd5fa02da03 textproc/json-glib/Makefile
--- a/textproc/json-glib/Makefile       Wed Mar 18 18:00:48 2020 +0000
+++ b/textproc/json-glib/Makefile       Wed Mar 18 18:01:23 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2020/03/08 16:48:14 wiz Exp $
+# $NetBSD: Makefile,v 1.32 2020/03/18 18:01:23 joerg Exp $
 
 DISTNAME=      json-glib-1.4.4
 PKGREVISION=   1
@@ -15,6 +15,13 @@
 
 CONFIGURE_ARGS+=       --disable-man
 
+.include "../../mk/compiler.mk"
+
+.if !empty(PKGSRC_COMPILER:Mclang)
+_WRAP_EXTRA_ARGS.CC+=  -Wno-error=void-pointer-to-int-cast
+CWRAPPERS_APPEND.cc+=  -Wno-error=void-pointer-to-int-cast
+.endif
+
 # workaround for build failure
 # https://gitlab.gnome.org/GNOME/json-glib/issues/35
 MAKE_ENV+=     LD_LIBRARY_PATH=${WRKSRC}/output/json-glib



Home | Main Index | Thread Index | Old Index