Date: Fri, 26 Jan 2018 17:29:14 +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: r460013 - head/devel/flatzebra Message-ID: <201801261729.w0QHTEgI088219@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jbeich Date: Fri Jan 26 17:29:13 2018 New Revision: 460013 URL: https://svnweb.freebsd.org/changeset/ports/460013 Log: devel/flatzebra: unbreak build with Clang 6 (C++14 by default) In file included from GameEngine.cpp:23: ../../src/flatzebra/GameEngine.h:412:23: error: non-constant-expression cannot be narrowed from type 'int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing] SDL_Rect rect = { x, y, width, height }; ^ ../../src/flatzebra/GameEngine.h:412:23: note: insert an explicit cast to silence this issue SDL_Rect rect = { x, y, width, height }; ^ static_cast<Sint16>( ) ../../src/flatzebra/GameEngine.h:412:26: error: non-constant-expression cannot be narrowed from type 'int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing] SDL_Rect rect = { x, y, width, height }; ^ ../../src/flatzebra/GameEngine.h:412:26: note: insert an explicit cast to silence this issue SDL_Rect rect = { x, y, width, height }; ^ static_cast<Sint16>( ) ../../src/flatzebra/GameEngine.h:412:29: error: non-constant-expression cannot be narrowed from type 'int' to 'Uint16' (aka 'unsigned short') in initializer list [-Wc++11-narrowing] SDL_Rect rect = { x, y, width, height }; ^~~~~ ../../src/flatzebra/GameEngine.h:412:29: note: insert an explicit cast to silence this issue SDL_Rect rect = { x, y, width, height }; ^~~~~ static_cast<Uint16>( ) ../../src/flatzebra/GameEngine.h:412:36: error: non-constant-expression cannot be narrowed from type 'int' to 'Uint16' (aka 'unsigned short') in initializer list [-Wc++11-narrowing] SDL_Rect rect = { x, y, width, height }; ^~~~~~ ../../src/flatzebra/GameEngine.h:412:36: note: insert an explicit cast to silence this issue SDL_Rect rect = { x, y, width, height }; ^~~~~~ static_cast<Uint16>( ) Reported by: pkg-fallout (blocks 3 ports) Modified: head/devel/flatzebra/Makefile (contents, props changed) Modified: head/devel/flatzebra/Makefile ============================================================================== --- head/devel/flatzebra/Makefile Fri Jan 26 17:29:05 2018 (r460012) +++ head/devel/flatzebra/Makefile Fri Jan 26 17:29:13 2018 (r460013) @@ -14,6 +14,7 @@ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING USES= pathfix pkgconfig libtool +USE_CXXSTD= gnu++98 GNU_CONFIGURE= yes USE_SDL= sdl mixer image USE_LDCONFIG= yes
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801261729.w0QHTEgI088219>