Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Aug 2018 23:44:08 +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: r478625 - head/games/galaxyhack
Message-ID:  <201808312344.w7VNi8IN021555@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Fri Aug 31 23:44:08 2018
New Revision: 478625
URL: https://svnweb.freebsd.org/changeset/ports/478625

Log:
  games/galaxyhack: Fix build with Clang 6
  
  Group_Base.cpp:230:24: error: non-constant-expression cannot be narrowed from type 'int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing]
      SDL_Rect myRect = {static_cast<int>(myx), static_cast<int>(myy), width, height};
                         ^~~~~~~~~~~~~~~~~~~~~
  
  ... and more of these in various other files
  
  http://beefy11.nyi.freebsd.org/data/head-i386-default/p478276_s338342/logs/errors/galaxyhack-1.74_28.log

Modified:
  head/games/galaxyhack/Makefile

Modified: head/games/galaxyhack/Makefile
==============================================================================
--- head/games/galaxyhack/Makefile	Fri Aug 31 23:37:14 2018	(r478624)
+++ head/games/galaxyhack/Makefile	Fri Aug 31 23:44:08 2018	(r478625)
@@ -27,9 +27,12 @@ FLEETS_DESC=	Additional fleets
 
 WRKSRC=		${WRKDIR}/${PORTNAME}/src
 
-USES=		dos2unix gmake tar:bzip2
+USES=		compiler dos2unix gmake tar:bzip2
 USE_SDL=	gfx image mixer sdl
 ALL_TARGET=	${PORTNAME}
+
+CXXFLAGS+=	${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
+CXXFLAGS_clang=	-Wno-c++11-narrowing
 
 SUB_FILES=	${PORTNAME}-sh
 



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