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:
Tobias Kortkamp 2018-08-31 23:44:08 +00:00
parent bb27f4c286
commit 90ef79bd7e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=478625

View file

@ -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 \