Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2018 08:02:35 +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: r475866 - head/games/dangerdeep
Message-ID:  <201807300802.w6U82ZxF081860@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Mon Jul 30 08:02:34 2018
New Revision: 475866
URL: https://svnweb.freebsd.org/changeset/ports/475866

Log:
  games/dangerdeep: Fix build with Clang 6
  
  src/freeview_display.cpp:344:27: error: non-constant-expression cannot be narrowed from type 'double' to 'GLfloat' (aka 'float') in initializer list [-Wc++11-narrowing]
          GLfloat lposition[4] = { sundir.x, sundir.y, sundir.z, 0.0f };
                                   ^~~~~~~~
  
  http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475478_s336801/logs/errors/dangerdeep-0.3.0_14.log

Modified:
  head/games/dangerdeep/Makefile

Modified: head/games/dangerdeep/Makefile
==============================================================================
--- head/games/dangerdeep/Makefile	Mon Jul 30 07:23:24 2018	(r475865)
+++ head/games/dangerdeep/Makefile	Mon Jul 30 08:02:34 2018	(r475866)
@@ -14,10 +14,12 @@ COMMENT=	Open source World War II German submarine sim
 LIB_DEPENDS=	libfftw3.so:math/fftw3
 RUN_DEPENDS=	dangerdeep-data>0:games/dangerdeep-data
 
-USES=		scons
+USES=		compiler scons
 USE_GL=		yes
 USE_SDL=	sdl mixer image net
 
+CXXFLAGS+=	${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
+CXXFLAGS_clang=	-Wno-c++11-narrowing
 MAKE_ARGS=	installbindir=${PREFIX}/bin installdatadir=${DATADIR}
 MAKE_ENV=	X11BASE=${LOCALBASE}
 



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