Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Sep 2018 09:41:43 +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: r478664 - head/games/rtb
Message-ID:  <201809010941.w819fhBr032625@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



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