Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2018 11:11:41 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r475880 - head/games/kuklomenos
Message-ID:  <201807301111.w6UBBfIx077188@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807301111.w6UBBfIx077188>