games/bomns: unbreak build with Clang 6 (C++14 by default)

src/bomns.cpp:565:22: error: non-constant-expression cannot be narrowed from type 'int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing]
  SDL_Rect rcDest = {nX, nY, 15, 20};
                     ^~
src/bomns.cpp:565:22: note: insert an explicit cast to silence this issue
  SDL_Rect rcDest = {nX, nY, 15, 20};
                     ^~
                     static_cast<Sint16>( )
src/bomns.cpp:565:26: error: non-constant-expression cannot be narrowed from type 'int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing]
  SDL_Rect rcDest = {nX, nY, 15, 20};
                         ^~
src/bomns.cpp:565:26: note: insert an explicit cast to silence this issue
  SDL_Rect rcDest = {nX, nY, 15, 20};
                         ^~
                         static_cast<Sint16>( )

Reported by:	pkg-fallout
This commit is contained in:
Jan Beich 2018-01-20 17:47:39 +00:00
parent 9b56895c91
commit 2e809b5518
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=459539

View file

@ -21,6 +21,7 @@ GH_TAGNAME= 113be27
USES= cmake localbase
CMAKE_ARGS= -Wno-dev
USE_CXXSTD= gnu++98
USE_SDL= mixer sdl
USE_GNOME= gtk20
USE_CSTD= gnu89