pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkgsrc: xmahjongg: force c++03. Fixes build issue (GCC 6.4)



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c377a90c8eba
branches:  trunk
changeset: 306097:c377a90c8eba
user:      maya <maya%pkgsrc.org@localhost>
date:      Tue Apr 10 03:39:17 2018 +0000
description:
xmahjongg: force c++03. Fixes build issue (GCC 6.4)

permstr.cc: In function 'bool operator==(PermString, const char*)':
permstr.cc:163:26: error: no matching function for call to 'operator==(PermString&, bool)'
   if (operator==(a, false) || !b)
                          ^
In file included from permstr.cc:19:0:
../include/lcdf/permstr.hh:113:1: note: candidate: bool operator==(PermString, PermString)
 operator==(PermString a, PermString b)
 ^~~~~~~~

diffstat:

 games/xmahjongg/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 4db10ce453a2 -r c377a90c8eba games/xmahjongg/Makefile
--- a/games/xmahjongg/Makefile  Tue Apr 10 01:02:50 2018 +0000
+++ b/games/xmahjongg/Makefile  Tue Apr 10 03:39:17 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2012/10/06 11:55:01 asau Exp $
+# $NetBSD: Makefile,v 1.30 2018/04/10 03:39:17 maya Exp $
 #
 
 DISTNAME=      xmahjongg-3.7
@@ -11,7 +11,7 @@
 COMMENT=       The Chinese game of Mah Jongg for X11
 
 GNU_CONFIGURE= YES
-USE_LANGUAGES= c c++
+USE_LANGUAGES= c c++03
 
 .include "../../mk/bsd.prefs.mk"
 # XXX: hack - work round an ICE with GCC 3.3 on sparc



Home | Main Index | Thread Index | Old Index