Re: [sqlite] compilation warnings sqlite3

2016-11-22 Thread Richard Hipp
On 11/22/16, Christoph P.U. Kukulies  wrote:
> Am 22.11.2016 um 16:39 schrieb Richard Hipp:
>> On 11/22/16, Christoph P.U. Kukulies  wrote:
>>> Am 22.11.2016 um 16:27 schrieb Christoph P.U. Kukulies:
 To whom it may concern: while compiling sqlite3 under
 FreeBSD-11.0-RELEASE
 a compiler warning rushed over the screen:
>>> Sorry, this message got prematurely dismissed:
>> The line numbers in the warnings would be more helpful to us if you
>> told us which version of SQLite you are compiling against.
>>
>>> te3.Tpo -c sqlite/sqlite3.c -o sqlite/libsqlite_static_la-sqlite3.o
>>> sqlite/sqlite3.c:55862:12: warning: unused variable 'pBlock'
>>> [-Wunused-variable]
>>> sqlite3 *pBlock = 0;
>>>  ^
>
> Not sure cause it scrolled off screen but it may be: sqlite3-3.15.1_1
> (or sqlite3-3.7.17_1).

The "sqlite3 *pBlock = 0;" statement occurs on line 61402 in 3.15.1
and on line 52203 in version 3.7.17.  So you are apparently not
compile either of those.  The statement is line 55860 in SQLite 3.8.9
(2015-04-11, 1.5 years old, 23 subsequent releases).  That line number
is only 2 off from your warning message, suggesting that version 3.8.9
might be what you are compiling.

The "_1" suffix on your version numbers, and the fact that the line
numbers do not match any official SQLite releases, hint that the
FreeBSD people are making their on custom modifications to SQLite,
rather than using the tested and released versions.  If so, then you
should probably report the warnings to them, since for all we know the
warnings may be caused by their modifications.
-- 
D. Richard Hipp
d...@sqlite.org
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] compilation warnings sqlite3

2016-11-22 Thread Christoph P.U. Kukulies

Am 22.11.2016 um 16:39 schrieb Richard Hipp:

On 11/22/16, Christoph P.U. Kukulies  wrote:

Am 22.11.2016 um 16:27 schrieb Christoph P.U. Kukulies:

To whom it may concern: while compiling sqlite3 under
FreeBSD-11.0-RELEASE
a compiler warning rushed over the screen:

Sorry, this message got prematurely dismissed:

The line numbers in the warnings would be more helpful to us if you
told us which version of SQLite you are compiling against.


te3.Tpo -c sqlite/sqlite3.c -o sqlite/libsqlite_static_la-sqlite3.o
sqlite/sqlite3.c:55862:12: warning: unused variable 'pBlock'
[-Wunused-variable]
sqlite3 *pBlock = 0;
 ^
sqlite/sqlite3.c:60268:11: warning: unused variable 'key'
[-Wunused-variable]
u32 key = get4byte([i]->aData[8]);
^
sqlite/sqlite3.c:8954:26: warning: unused variable 'sqlite3one'
[-Wunused-const-variable]
SQLITE_PRIVATE const int sqlite3one = 1;
   ^

If it's of any interest for the developers to keep their code clean, I'm
just mentioning it here.

--
Christoph


Not sure cause it scrolled off screen but it may be: sqlite3-3.15.1_1
(or sqlite3-3.7.17_1).

--
Christoph

___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] compilation warnings sqlite3

2016-11-22 Thread Richard Hipp
On 11/22/16, Christoph P.U. Kukulies  wrote:
> Am 22.11.2016 um 16:27 schrieb Christoph P.U. Kukulies:
>> To whom it may concern: while compiling sqlite3 under
>> FreeBSD-11.0-RELEASE
>> a compiler warning rushed over the screen:
> Sorry, this message got prematurely dismissed:

The line numbers in the warnings would be more helpful to us if you
told us which version of SQLite you are compiling against.

>
> te3.Tpo -c sqlite/sqlite3.c -o sqlite/libsqlite_static_la-sqlite3.o
> sqlite/sqlite3.c:55862:12: warning: unused variable 'pBlock'
> [-Wunused-variable]
>sqlite3 *pBlock = 0;
> ^
> sqlite/sqlite3.c:60268:11: warning: unused variable 'key'
> [-Wunused-variable]
>u32 key = get4byte([i]->aData[8]);
>^
> sqlite/sqlite3.c:8954:26: warning: unused variable 'sqlite3one'
> [-Wunused-const-variable]
> SQLITE_PRIVATE const int sqlite3one = 1;
>   ^
>
> If it's of any interest for the developers to keep their code clean, I'm
> just mentioning it here.
>
> --
> Christoph
>
> ___
> sqlite-users mailing list
> sqlite-users@mailinglists.sqlite.org
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
>


-- 
D. Richard Hipp
d...@sqlite.org
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] compilation warnings sqlite3

2016-11-22 Thread Christoph P.U. Kukulies

Am 22.11.2016 um 16:27 schrieb Christoph P.U. Kukulies:
To whom it may concern: while compiling sqlite3 under 
FreeBSD-11.0-RELEASE

a compiler warning rushed over the screen:

Sorry, this message got prematurely dismissed:

te3.Tpo -c sqlite/sqlite3.c -o sqlite/libsqlite_static_la-sqlite3.o
sqlite/sqlite3.c:55862:12: warning: unused variable 'pBlock' 
[-Wunused-variable]

  sqlite3 *pBlock = 0;
   ^
sqlite/sqlite3.c:60268:11: warning: unused variable 'key' 
[-Wunused-variable]

  u32 key = get4byte([i]->aData[8]);
  ^
sqlite/sqlite3.c:8954:26: warning: unused variable 'sqlite3one' 
[-Wunused-const-variable]

SQLITE_PRIVATE const int sqlite3one = 1;
 ^

If it's of any interest for the developers to keep their code clean, I'm 
just mentioning it here.


--
Christoph

___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users