svn commit: r459538 - head/games/bombherman
Jan Beich
jbeich at FreeBSD.org
Sat Jan 20 17:47:17 UTC 2018
Author: jbeich
Date: Sat Jan 20 17:47:16 2018
New Revision: 459538
URL: https://svnweb.freebsd.org/changeset/ports/459538
Log:
games/bombherman: unbreak build with Clang 6 (C++14 by default)
display/display.cpp:371:17: error: non-constant-expression cannot be narrowed from type 'Uint16' (aka 'unsigned short') to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing]
SDL_Rect r = { x, y, w, h };
^
display/display.cpp:371:17: note: insert an explicit cast to silence this issue
SDL_Rect r = { x, y, w, h };
^
static_cast<Sint16>( )
display/display.cpp:391:48: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
TTF_Font * fontTitle = TTF_OpenFont(DATADIR"/"FONT_FILE, (height / fSize));
^
display/display.cpp:560:5: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing]
( ( dh.w - sSize ) / dp.w ) + ( i * dh.x ),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
display/display.cpp:583:6: error: non-constant-expression cannot be narrowed from type 'int' to 'Uint16' (aka 'unsigned short') in initializer list [-Wc++11-narrowing]
wText,
^~~~~
[...]
Reported by: pkg-fallout
Modified:
head/games/bombherman/Makefile (contents, props changed)
Modified: head/games/bombherman/Makefile
==============================================================================
--- head/games/bombherman/Makefile Sat Jan 20 17:46:54 2018 (r459537)
+++ head/games/bombherman/Makefile Sat Jan 20 17:47:16 2018 (r459538)
@@ -23,6 +23,7 @@ GH_PROJECT= Bomb-her-man
GH_TAGNAME= 8f5aa22
USES= autoreconf gmake pkgconfig
+USE_CXXSTD= gnu++98
USE_SDL= sdl image mixer ttf
USE_GNOME= cairo intltool librsvg2
GNU_CONFIGURE= yes
More information about the svn-ports-all
mailing list