Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jan 2018 17:47:39 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r459539 - head/games/bomns
Message-ID:  <201801201747.w0KHldZ2032941@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801201747.w0KHldZ2032941>