svn commit: r478664 - head/games/rtb

Tobias Kortkamp tobik at FreeBSD.org
Sat Sep 1 09:41:43 UTC 2018


Author: tobik
Date: Sat Sep  1 09:41:42 2018
New Revision: 478664
URL: https://svnweb.freebsd.org/changeset/ports/478664

Log:
  games/rtb: Fix build with Clang 6
  
  Structs.cc:50:5: error: constant expression evaluates to 255 which cannot be narrowed to type 'gchar' (aka 'char') [-Wc++11-narrowing]
      0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f,
      ^~~~
  
  http://beefy11.nyi.freebsd.org/data/head-i386-default/p478276_s338342/logs/errors/RealTimeBattle-1.0.8_11.log

Modified:
  head/games/rtb/Makefile

Modified: head/games/rtb/Makefile
==============================================================================
--- head/games/rtb/Makefile	Sat Sep  1 09:41:22 2018	(r478663)
+++ head/games/rtb/Makefile	Sat Sep  1 09:41:42 2018	(r478664)
@@ -16,11 +16,13 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 BUILD_DEPENDS=	gsed:textproc/gsed
 
-USES=		gettext gmake perl5 pkgconfig python:2.7 tar:bzip2
+USES=		compiler gettext gmake perl5 pkgconfig python:2.7 tar:bzip2
 USE_GNOME=	gtk20
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-rtb-dir=${PREFIX}/lib/${PORTNAME}
 
+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-head mailing list