Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jan 2018 17:47:16 +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: r459538 - head/games/bombherman
Message-ID:  <201801201747.w0KHlGji032822@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Sat Jan 20 17:47:16 2018
New Revision: 459538
URL: https://svnweb.freebsd.org/changeset/ports/459538

Log:
  games/bombherman: unbreak build with Clang 6 (C++14 by default)
  
  display/display.cpp:371:17: error: non-constant-expression cannot be narrowed from type 'Uint16' (aka 'unsigned short') to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing]
          SDL_Rect r = { x, y, w, h };
                         ^
  display/display.cpp:371:17: note: insert an explicit cast to silence this issue
          SDL_Rect r = { x, y, w, h };
                         ^
                         static_cast<Sint16>( )
  display/display.cpp:391:48: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
          TTF_Font * fontTitle = TTF_OpenFont(DATADIR"/"FONT_FILE, (height / fSize));
                                                        ^
  
  display/display.cpp:560:5: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing]
                                  ( ( dh.w - sSize ) / dp.w ) + ( i * dh.x ),
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  display/display.cpp:583:6: error: non-constant-expression cannot be narrowed from type 'int' to 'Uint16' (aka 'unsigned short') in initializer list [-Wc++11-narrowing]
                                          wText,
                                          ^~~~~
  [...]
  
  Reported by:	pkg-fallout

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

Modified: head/games/bombherman/Makefile
==============================================================================
--- head/games/bombherman/Makefile	Sat Jan 20 17:46:54 2018	(r459537)
+++ head/games/bombherman/Makefile	Sat Jan 20 17:47:16 2018	(r459538)
@@ -23,6 +23,7 @@ GH_PROJECT=	Bomb-her-man
 GH_TAGNAME=	8f5aa22
 
 USES=		autoreconf gmake pkgconfig
+USE_CXXSTD=	gnu++98
 USE_SDL=	sdl image mixer ttf
 USE_GNOME=	cairo intltool librsvg2
 GNU_CONFIGURE=	yes



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