freebsd-ports/games/bombherman
Jan Beich 9b56895c91 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
2018-01-20 17:47:16 +00:00
..
files
distinfo
Makefile games/bombherman: unbreak build with Clang 6 (C++14 by default) 2018-01-20 17:47:16 +00:00
pkg-descr
pkg-plist