From owner-svn-ports-all@freebsd.org Fri Jan 26 17:29:15 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B623BEB968A; Fri, 26 Jan 2018 17:29:14 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 62C607C872; Fri, 26 Jan 2018 17:29:14 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5DAFA1E8DB; Fri, 26 Jan 2018 17:29:14 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0QHTETu088220; Fri, 26 Jan 2018 17:29:14 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0QHTEgI088219; Fri, 26 Jan 2018 17:29:14 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201801261729.w0QHTEgI088219@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Fri, 26 Jan 2018 17:29:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r460013 - head/devel/flatzebra X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: head/devel/flatzebra X-SVN-Commit-Revision: 460013 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2018 17:29:15 -0000 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( ) ../../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( ) ../../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( ) ../../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( ) 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