pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/json-glib



Module Name:    pkgsrc
Committed By:   joerg
Date:           Wed Mar 18 18:01:23 UTC 2020

Modified Files:
        pkgsrc/textproc/json-glib: Makefile

Log Message:
Make some int cast warnings non-fatal for clang


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 pkgsrc/textproc/json-glib/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/json-glib/Makefile
diff -u pkgsrc/textproc/json-glib/Makefile:1.31 pkgsrc/textproc/json-glib/Makefile:1.32
--- pkgsrc/textproc/json-glib/Makefile:1.31     Sun Mar  8 16:48:14 2020
+++ pkgsrc/textproc/json-glib/Makefile  Wed Mar 18 18:01:23 2020
@@ -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 @@ USE_TOOLS+=  gmake msgfmt msgmerge pkg-co
 
 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