Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Apr 2019 18:05:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 237215] games/diaspora: fix build with GCC-based architectures
Message-ID:  <bug-237215-7788-vLZg4aRT4i@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-237215-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-237215-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237215

--- Comment #2 from Piotr Kubaj <pkubaj@anongoth.pl> ---
(In reply to lightside from comment #1)
When using GCC8, I get:
bmpman/bmpman.cpp: In function 'int bm_make_render_target(int, int, int)':
bmpman/bmpman.cpp:2817:71: error: cast from 'void*' to 'ptr_u' {aka 'unsign=
ed
int'} loses precision [-fpermissive]
   bm_bitmaps[n].bm.data =3D (ptr_u) bm_malloc(n, bm_bitmaps[n].mem_taken);


That's how I found that -fpermissive fixes that and it turns out it works w=
ith
base GCC.

You could add:
.if ${CHOSEN_COMPILER_TYPE} =3D=3D gcc && ${COMPILER_VERSION} < 43
if this is the approach you want to use. However, you can drop the check for
CHOSEN_COMPILER_TYPE, there's no Clang version lower than 4.3 in currently
supported FreeBSD versions.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237215-7788-vLZg4aRT4i>