This is on amalgamation code for version 3.19.2. Compiling for 64 bits.
Those were not reported with 3.18 as far as I remember.
(1) sqlite3.c(189575): warning C4267: 'function': conversion from 'size_t' to
'int', possible loss of data
Line:
iHash = fts5HashKey(nNew, (u8*)fts5EntryKey(p), strlen(fts5EntryKey(p)));
Changed to:
iHash = fts5HashKey(nNew, (u8*)fts5EntryKey(p),
(int)strlen(fts5EntryKey(p)));
(2) sqlite3.c(189888): error C4703: potentially uninitialized local pointer
variable 'zKey' used
*ppDoclist = (const u8*)&zKey[nTerm+1];
Line:
char *zKey;
Changed to:
char *zKey = 0;
Though it looks like zKey indeed is never null when p!=0. That would account
for a false detection by the compiler.
--
Best Regards, Meilleures salutations, Met vriendelijke groeten,
Olivier Mascia, http://integral.software
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users