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
This commit is contained in:
parent
37a5ca7ea4
commit
7950b4b429
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=475866
1 changed files with 3 additions and 1 deletions
|
@ -14,10 +14,12 @@ COMMENT= Open source World War II German submarine simulation
|
|||
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}
|
||||
|
||||
|
|
Loading…
Reference in a new issue