From 2e809b5518a92ba949ef0b24d5a36b515d8da13b Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sat, 20 Jan 2018 17:47:39 +0000 Subject: [PATCH] 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( ) 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( ) Reported by: pkg-fallout --- games/bomns/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/games/bomns/Makefile b/games/bomns/Makefile index 37cec268db5c..22c8069d2c70 100644 --- a/games/bomns/Makefile +++ b/games/bomns/Makefile @@ -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