1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

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:
Tobias Kortkamp 2018-07-30 08:02:34 +00:00
parent 37a5ca7ea4
commit 7950b4b429
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=475866

View File

@ -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}