mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 02:46:27 -04:00
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:
parent
9b56895c91
commit
2e809b5518
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=459539
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue