pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/rttr Ignore truncation warnings from clang, e.g....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/713a189cf5c5
branches:  trunk
changeset: 407842:713a189cf5c5
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Jan 10 21:12:58 2020 +0000

description:
Ignore truncation warnings from clang, e.g. on implicit casts from
INT64_T to float/double.

diffstat:

 devel/rttr/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r bb30ad4a7447 -r 713a189cf5c5 devel/rttr/Makefile
--- a/devel/rttr/Makefile       Fri Jan 10 21:12:09 2020 +0000
+++ b/devel/rttr/Makefile       Fri Jan 10 21:12:58 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2019/12/01 08:18:46 markd Exp $
+# $NetBSD: Makefile,v 1.3 2020/01/10 21:12:58 joerg Exp $
 
 DISTNAME=      rttr-0.9.6-src
 PKGNAME=       ${DISTNAME:S/-src//}
@@ -19,6 +19,11 @@
 CMAKE_ARGS+=   -DBUILD_UNIT_TESTS=OFF
 CMAKE_ARGS+=   -DBUILD_DOCUMENTATION=OFF
 
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mclang)
+CXXFLAGS+=     -Wno-error=implicit-int-float-conversion
+.endif
+
 post-install:
        chmod -R a+r ${DESTDIR}/${PREFIX}/include/rttr/
        chmod a+r ${DESTDIR}/${PREFIX}/share/rttr/*



Home | Main Index | Thread Index | Old Index