Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jul 2018 12:07:01 +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: r475651 - head/textproc/mifluz
Message-ID:  <201807291207.w6TC71GR016103@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Sun Jul 29 12:07:01 2018
New Revision: 475651
URL: https://svnweb.freebsd.org/changeset/ports/475651

Log:
  textproc/mifluz: Fix build with Clang 6
  
  WordTree.cc:530:10: error: case value evaluates to -1, which cannot be narrowed to type 'unsigned int' [-Wc++11-narrowing]
      case NOTOK:
           ^
  ./mifluz/lib.h:38:16: note: expanded from macro 'NOTOK'
  #define NOTOK           (-1)
                          ^
  
  http://beefy11.nyi.freebsd.org/data/head-i386-default/p475044_s336572/logs/mifluz-0.26.0.log

Modified:
  head/textproc/mifluz/Makefile

Modified: head/textproc/mifluz/Makefile
==============================================================================
--- head/textproc/mifluz/Makefile	Sun Jul 29 12:01:13 2018	(r475650)
+++ head/textproc/mifluz/Makefile	Sun Jul 29 12:07:01 2018	(r475651)
@@ -11,7 +11,7 @@ COMMENT=	C++ library to build and query a full text in
 
 LICENSE=	GPLv3
 
-USES=		bison iconv libtool makeinfo pathfix
+USES=		bison compiler iconv libtool makeinfo pathfix
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--enable-posixmutexes \
 		--localstatedir="${PREFIX}/var" \
@@ -19,6 +19,8 @@ CONFIGURE_ARGS=	--enable-posixmutexes \
 INSTALL_TARGET=	install-strip
 USE_LDCONFIG=	yes
 
+CXXFLAGS+=	${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
+CXXFLAGS_clang=	-Wno-c++11-narrowing
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 



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