svn commit: r285644 - head/contrib/sqlite3
Pedro Giffuni
pfg at FreeBSD.org
Sat Jul 18 14:12:09 UTC 2015
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.
More information about the svn-src-all
mailing list