From owner-svn-ports-all@freebsd.org Fri Aug 31 23:44:09 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 ED394FCE34A; Fri, 31 Aug 2018 23:44:08 +0000 (UTC) (envelope-from tobik@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 9C4038B732; Fri, 31 Aug 2018 23:44:08 +0000 (UTC) (envelope-from tobik@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 7D417221F0; Fri, 31 Aug 2018 23:44:08 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w7VNi89b021556; Fri, 31 Aug 2018 23:44:08 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w7VNi8IN021555; Fri, 31 Aug 2018 23:44:08 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201808312344.w7VNi8IN021555@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Fri, 31 Aug 2018 23:44:08 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r478625 - head/games/galaxyhack X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: head/games/galaxyhack X-SVN-Commit-Revision: 478625 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.27 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, 31 Aug 2018 23:44:09 -0000 Author: tobik Date: Fri Aug 31 23:44:08 2018 New Revision: 478625 URL: https://svnweb.freebsd.org/changeset/ports/478625 Log: games/galaxyhack: Fix build with Clang 6 Group_Base.cpp:230:24: error: non-constant-expression cannot be narrowed from type 'int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing] SDL_Rect myRect = {static_cast(myx), static_cast(myy), width, height}; ^~~~~~~~~~~~~~~~~~~~~ ... and more of these in various other files http://beefy11.nyi.freebsd.org/data/head-i386-default/p478276_s338342/logs/errors/galaxyhack-1.74_28.log Modified: head/games/galaxyhack/Makefile Modified: head/games/galaxyhack/Makefile ============================================================================== --- head/games/galaxyhack/Makefile Fri Aug 31 23:37:14 2018 (r478624) +++ head/games/galaxyhack/Makefile Fri Aug 31 23:44:08 2018 (r478625) @@ -27,9 +27,12 @@ FLEETS_DESC= Additional fleets WRKSRC= ${WRKDIR}/${PORTNAME}/src -USES= dos2unix gmake tar:bzip2 +USES= compiler dos2unix gmake tar:bzip2 USE_SDL= gfx image mixer sdl ALL_TARGET= ${PORTNAME} + +CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}} +CXXFLAGS_clang= -Wno-c++11-narrowing SUB_FILES= ${PORTNAME}-sh