Date: Mon, 30 Jul 2018 07:23:24 +0000 (UTC) From: Tobias Kortkamp <tobik@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r475865 - in head/games/xsc: . files Message-ID: <201807300723.w6U7NOOw061553@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tobik Date: Mon Jul 30 07:23:24 2018 New Revision: 475865 URL: https://svnweb.freebsd.org/changeset/ports/475865 Log: games/xsc: Fix build with Clang 6 buzzer.C:36:8: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing] { COS00 / 2.0, -SIN00 / 2.0 }, { -COS00 / 2.0, SIN00 / 2.0 }, ^~~~~~~~~~~ http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475478_s336801/logs/errors/xsc-1.6_1.log - While here also fix segfault due to some uninitialized variables Added: head/games/xsc/files/ head/games/xsc/files/patch-text.C (contents, props changed) Modified: head/games/xsc/Makefile Modified: head/games/xsc/Makefile ============================================================================== --- head/games/xsc/Makefile Mon Jul 30 07:12:06 2018 (r475864) +++ head/games/xsc/Makefile Mon Jul 30 07:23:24 2018 (r475865) @@ -3,7 +3,7 @@ PORTNAME= xsc PORTVERSION= 1.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://www.panix.com/~mbh/xsc/ \ SF/nemysisfreebsdp/${CATEGORIES}/:icons @@ -16,8 +16,11 @@ COMMENT= Vector graphics space shoot'em up game LICENSE= GPLv2 +USES= compiler USE_XORG= x11 GNU_CONFIGURE= yes +CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}} +CXXFLAGS_clang= -Wno-c++11-narrowing PORTDOCS= AUTHORS ChangeLog README OPTIONS_DEFINE= DOCS Added: head/games/xsc/files/patch-text.C ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/xsc/files/patch-text.C Mon Jul 30 07:23:24 2018 (r475865) @@ -0,0 +1,11 @@ +--- text.C.orig 2013-04-05 21:18:39 UTC ++++ text.C +@@ -27,7 +27,7 @@ static const char *const file_id = + #include "text.h" + + +-Text::Text(void) ++Text::Text(void) : message(NULL), length(0) + { + //fprintf(stderr, "Text::Text()\n"); + set_scale(6.0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807300723.w6U7NOOw061553>