From dc519ff8877c666d4e6596ece858d6d78e78bf69 Mon Sep 17 00:00:00 2001 From: Tobias Kortkamp Date: Mon, 27 Aug 2018 17:10:21 +0000 Subject: [PATCH] devel/cld2: Fix build with Clang 6 cld_generated_cjk_uni_prop_80.cc:169:1: error: constant expression evaluates to -14 which cannot be narrowed to type 'CLD2::uint8' (aka 'unsigned char') [-Wc++11-narrowing] -14,-14,-14,-14,-14,-14,-14,-14, -14,-14,-14,-14,-14,-14,-14,-14, ^~~ cld_generated_cjk_uni_prop_80.cc:169:1: note: insert an explicit cast to silence this issue -14,-14,-14,-14,-14,-14,-14,-14, -14,-14,-14,-14,-14,-14,-14,-14, ^~~ static_cast( ) http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/cld2-20150505.log PR: 230906 Submitted by: tobik Approved by: demon (maintainer) --- devel/cld2/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devel/cld2/Makefile b/devel/cld2/Makefile index e92615dde8c1..e8b35014d229 100644 --- a/devel/cld2/Makefile +++ b/devel/cld2/Makefile @@ -12,8 +12,12 @@ COMMENT= Compact language detector library LICENSE= APACHE20 +USES= compiler USE_LDCONFIG= yes +CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}} +CXXFLAGS_clang= -Wno-c++11-narrowing + post-patch: ${REINPLACE_CMD} -e "s#g++#${CXX}#" ${WRKSRC}/internal/compile_libs.sh