svn commit: r475651 - head/textproc/mifluz

Tobias Kortkamp tobik at FreeBSD.org
Sun Jul 29 12:07:02 UTC 2018


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
 


More information about the svn-ports-all mailing list