mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
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
This commit is contained in:
parent
bb27f4c286
commit
90ef79bd7e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=478625
1 changed files with 4 additions and 1 deletions
|
@ -27,10 +27,13 @@ FLEETS_DESC= Additional fleets
|
||||||
|
|
||||||
WRKSRC= ${WRKDIR}/${PORTNAME}/src
|
WRKSRC= ${WRKDIR}/${PORTNAME}/src
|
||||||
|
|
||||||
USES= dos2unix gmake tar:bzip2
|
USES= compiler dos2unix gmake tar:bzip2
|
||||||
USE_SDL= gfx image mixer sdl
|
USE_SDL= gfx image mixer sdl
|
||||||
ALL_TARGET= ${PORTNAME}
|
ALL_TARGET= ${PORTNAME}
|
||||||
|
|
||||||
|
CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
|
||||||
|
CXXFLAGS_clang= -Wno-c++11-narrowing
|
||||||
|
|
||||||
SUB_FILES= ${PORTNAME}-sh
|
SUB_FILES= ${PORTNAME}-sh
|
||||||
|
|
||||||
PLIST_FILES= bin/galaxyhack \
|
PLIST_FILES= bin/galaxyhack \
|
||||||
|
|
Loading…
Add table
Reference in a new issue