1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

games/kuklomenos: Fix build with Clang 6

background.cc:69:6: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'int' in initializer list [-Wc++11-narrowing]
            (colour & 0xff000000) >> 24,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~

http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475478_s336801/logs/errors/kuklomenos-0.4.5_4.log
This commit is contained in:
Tobias Kortkamp 2018-07-30 11:11:40 +00:00
parent 4f6bece540
commit a3db0cb8ec
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=475880

View File

@ -19,9 +19,12 @@ OPTIONS_DEFINE= VORBIS
OPTIONS_DEFAULT= VORBIS
OPTIONS_SUB= yes
USES= compiler
USE_SDL= sdl
GNU_CONFIGURE= yes
CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
CXXFLAGS_clang= -Wno-c++11-narrowing
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -lpthread -L${LOCALBASE}/lib