svn commit: r475880 - head/games/kuklomenos
Tobias Kortkamp
tobik at FreeBSD.org
Mon Jul 30 11:11:42 UTC 2018
Author: tobik
Date: Mon Jul 30 11:11:40 2018
New Revision: 475880
URL: https://svnweb.freebsd.org/changeset/ports/475880
Log:
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
Modified:
head/games/kuklomenos/Makefile
Modified: head/games/kuklomenos/Makefile
==============================================================================
--- head/games/kuklomenos/Makefile Mon Jul 30 11:05:18 2018 (r475879)
+++ head/games/kuklomenos/Makefile Mon Jul 30 11:11:40 2018 (r475880)
@@ -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
More information about the svn-ports-all
mailing list