svn commit: r478625 - head/games/galaxyhack
Tobias Kortkamp
tobik at FreeBSD.org
Fri Aug 31 23:44:09 UTC 2018
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
More information about the svn-ports-all
mailing list