svn commit: r459539 - head/games/bomns

Jan Beich jbeich at FreeBSD.org
Sat Jan 20 17:47:40 UTC 2018


Author: jbeich
Date: Sat Jan 20 17:47:39 2018
New Revision: 459539
URL: https://svnweb.freebsd.org/changeset/ports/459539

Log:
  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

Modified:
  head/games/bomns/Makefile   (contents, props changed)

Modified: head/games/bomns/Makefile
==============================================================================
--- head/games/bomns/Makefile	Sat Jan 20 17:47:16 2018	(r459538)
+++ head/games/bomns/Makefile	Sat Jan 20 17:47:39 2018	(r459539)
@@ -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


More information about the svn-ports-all mailing list