Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jul 2018 02:55:34 +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: r474830 - head/games/dungeoncrawl
Message-ID:  <201807180255.w6I2tYA7061467@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Wed Jul 18 02:55:33 2018
New Revision: 474830
URL: https://svnweb.freebsd.org/changeset/ports/474830

Log:
  games/dungeoncrawl: unbreak with Clang 6
  
  direct.cc:47:32: error: constant expression evaluates to -1 which cannot be narrowed to type 'char' [-Wc++11-narrowing]
  static const char xcomp[9] = { -1, 0, 1, -1, 0, 1, -1, 0, 1 };
                                 ^~
  describe.cc:216:28: warning: result of comparison of constant -2 with expression of type 'char' is always false [-Wtautological-constant-out-of-range-compare]
      if (proprt[ RAP_FIRE ] < -2)
          ~~~~~~~~~~~~~~~~~~ ^ ~~
  
  PR:		229723
  Submitted by:	Greg V
  Reported by:	pkg-fallout

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

Modified: head/games/dungeoncrawl/Makefile
==============================================================================
--- head/games/dungeoncrawl/Makefile	Wed Jul 18 02:53:35 2018	(r474829)
+++ head/games/dungeoncrawl/Makefile	Wed Jul 18 02:55:33 2018	(r474830)
@@ -14,6 +14,8 @@ COMMENT=	Old school roguelike game
 WRKSRC_SUBDIR=	source
 
 USES=		ncurses tar:tbz2
+USE_CXXSTD=	gnu++98
+CXXFLAGS+=	-fsigned-char
 MAKEFILE=	makefile.bsd
 
 PORTDOCS=	buglist.txt crawl.txt



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