Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Aug 2018 20:20:34 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r478250 - head/devel/uatraits
Message-ID:  <201808272020.w7RKKYLP009216@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Mon Aug 27 20:20:33 2018
New Revision: 478250
URL: https://svnweb.freebsd.org/changeset/ports/478250

Log:
  devel/uatraits: Fix build with Clang 6
  
  ../include/uatraits/details/regex_utils.hpp:67:24: error: non-constant-expression cannot be narrowed from type 'decltype(__x.base() - __y.base())' (aka 'int') to 'std::size_t' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]
                          regex_data data = { i - begin, pos - begin, scan_integer<std::size_t>(i + 1, pos) };
                                              ^~~~~~~~~
  
  http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/uatraits-20130430_11.log
  
  Approved by:	demon (maintainer, implicit)

Modified:
  head/devel/uatraits/Makefile

Modified: head/devel/uatraits/Makefile
==============================================================================
--- head/devel/uatraits/Makefile	Mon Aug 27 20:16:25 2018	(r478249)
+++ head/devel/uatraits/Makefile	Mon Aug 27 20:20:33 2018	(r478250)
@@ -16,7 +16,7 @@ LIB_DEPENDS=	${PY_BOOST} \
 		libpcre.so:devel/pcre \
 		libxml2.so:textproc/libxml2
 
-USES=		autoreconf libtool pkgconfig python:2.7 ssl
+USES=		autoreconf compiler libtool pkgconfig python:2.7 ssl
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 
@@ -27,6 +27,8 @@ CONFIGURE_ARGS=	--with-boost-prefix=${LOCALBASE} \
 CONFIGURE_ENV=	crypto_CFLAGS="-I${OPENSSLINC}" \
 		crypto_LIBS="-L${OPENSSLLIB} -lcrypto"
 CPPFLAGS+=	-I${LOCALBASE}/include
+CXXFLAGS+=	${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
+CXXFLAGS_clang=	-Wno-c++11-narrowing
 
 post-patch:
 	@${REINPLACE_CMD} -e 's/\[boost_python]/[${PY_BOOST_LIB}]/' \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808272020.w7RKKYLP009216>