Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Aug 2018 17:10:22 +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: r478231 - head/devel/cld2
Message-ID:  <201808271710.w7RHAMrG009924@repo.freebsd.org>

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

Log:
  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<uint8>( )
  
  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)

Modified:
  head/devel/cld2/Makefile

Modified: head/devel/cld2/Makefile
==============================================================================
--- head/devel/cld2/Makefile	Mon Aug 27 17:08:45 2018	(r478230)
+++ head/devel/cld2/Makefile	Mon Aug 27 17:10:21 2018	(r478231)
@@ -12,7 +12,11 @@ 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



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