Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jul 2015 09:06:11 -0500
From:      Pedro Giffuni <pfg@FreeBSD.org>
To:        Bruce Evans <brde@optusnet.com.au>
Cc:        Peter Jeremy <peter@rulingia.com>, src-committers@freebsd.org,  svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r285644 - head/contrib/sqlite3
Message-ID:  <55AA5D53.1030405@FreeBSD.org>
In-Reply-To: <20150718155507.J876@besplex.bde.org>
References:  <201507162207.t6GM7ECT009955@repo.freebsd.org> <20150717222631.GD36150@server.rulingia.com> <55A98763.1030705@FreeBSD.org> <20150718155507.J876@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help


On 07/18/15 01:26, Bruce Evans wrote:
> On Fri, 17 Jul 2015, Pedro Giffuni wrote:
>
>> ...
>>
>> The compiler warning is this:
>> ...
>> ===> lib/libsqlite3 (obj,depend,all,install)
>> cc1: warnings being treated as errors
>> /scratch/tmp/pfg/head/lib/libsqlite3/../../contrib/sqlite3/sqlite3.c: 
>> In function 'walIndexWriteHdr':
>> /scratch/tmp/pfg/head/lib/libsqlite3/../../contrib/sqlite3/sqlite3.c:49490: 
>> warning: passing argument 1 of 'memcpy' discards qualifiers from 
>> pointer target type
>> /scratch/tmp/pfg/head/lib/libsqlite3/../../contrib/sqlite3/sqlite3.c:49492: 
>> warning: passing argument 1 of 'memcpy' discards qualifiers from 
>> pointer target type
>> --- sqlite3.So ---
>> *** [sqlite3.So] Error code 1
>> ...
>>
>> make[6]: stopped in /scratch/tmp/pfg/head/lib/libsqlite3
>>
>> It only happens when using the experimental FORTIFY_SOURCE support [1],
>> and it only happens with gcc (the base one is the only tested).
>>
>> Yes, I am suspecting a compiler bug but gcc has been really useful to 
>> find
>> bugs in fortify_source.
>
> gcc is correct.  This has nothing to do with 'const'.  aHdr has a
> volatile qualifier.
>

OK, I am testing the patch for this. Thanks!

Pedro.




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