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)
This commit is contained in:
Tobias Kortkamp 2018-08-27 20:20:33 +00:00
parent 1509748ca3
commit 8685d68640
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=478250

View file

@ -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}]/' \