Date: Wed, 24 Jun 2020 12:09:03 +0200 From: Dimitry Andric <dim@FreeBSD.org> To: Kyle Evans <kevans@FreeBSD.org> Cc: Jung-uk Kim <jkim@freebsd.org>, src-committers <src-committers@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>, svn-src-head <svn-src-head@freebsd.org> Subject: Re: svn commit: r362333 - in head: contrib/flex contrib/flex/src usr.bin/lex usr.bin/lex/lib Message-ID: <2FBF81D0-9EA3-4F46-9E3E-7EDE852962C1@FreeBSD.org> In-Reply-To: <CACNAnaG4AsyQhXDW%2BOBOs7iC13_8n5FaqRRg3YZk57Sow0SBcA@mail.gmail.com> References: <202006181809.05II9G8p054025@repo.freebsd.org> <CACNAnaG4AsyQhXDW%2BOBOs7iC13_8n5FaqRRg3YZk57Sow0SBcA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_79D897FD-2ACA-4D1F-BA55-4EAD2EC975A3 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 24 Jun 2020, at 02:41, Kyle Evans <kevans@FreeBSD.org> wrote: > > On Thu, Jun 18, 2020 at 1:09 PM Jung-uk Kim <jkim@freebsd.org> wrote: >> >> Author: jkim >> Date: Thu Jun 18 18:09:16 2020 >> New Revision: 362333 >> URL: https://svnweb.freebsd.org/changeset/base/362333 >> >> Log: >> MFV: r362286 >> >> Merge flex 2.6.4. >> > > Hi, > > I'm looking at getting amd64 world buildable again by gcc6; this seems > to give it some gas: > > /usr/src/contrib/flex/src/main.c: In function 'check_options': > /usr/src/contrib/flex/src/main.c:347:14: error: assignment discards > 'const' qualifier from pointer target type > [-Werror=discarded-qualifiers] > if ((slash = strrchr(M4, '/')) != NULL) { > > The following trivial patch seems to make gcc6 happy again. This is a strange one. As gcc6 has been removed from ports, I had to resort to an older 12-STABLE box which still had it, but no matter what I try, I cannot get the warning that is being produced by the CI system. What does it do differently? Also, the warning is indeed bogus, as strrchr() returns a non-const char pointer. As I can't reproduce it, I also can't verify which gcc version fixes the bogus warning. -Dimitry --Apple-Mail=_79D897FD-2ACA-4D1F-BA55-4EAD2EC975A3 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCXvMmQAAKCRCwXqMKLiCW o5lWAKCAZDl/tBqgKpzUFos58HcuwdhHtwCeOW/37V5em/h8Npgv+/IyyEJ++rI= =VwQf -----END PGP SIGNATURE----- --Apple-Mail=_79D897FD-2ACA-4D1F-BA55-4EAD2EC975A3--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2FBF81D0-9EA3-4F46-9E3E-7EDE852962C1>