I get zero warnings with MSVC 2010.

And your line numbers are wrong, probably because the warnings happen
beyond the 64K line mark and MSVC is unable to track lines beyond 64K.  If
you can, please compile "sqlite3-all.c" instead of "sqlite3.c" from
canonical sources (sqlite-src-3130000.zip
<https://www.sqlite.org/2016/sqlite-src-3130000.zip>) using the command:

   nmake -f Makefile.msc sqlite3-all.c

Then try to compile your app using sqlite3-all.c instead of sqlite3.c.
That will fix the line-number overflow problem.

I'm away from the office and so I don't have access to a Windows machine to
do further analysis right now.  But I seriously doubt this is anything to
worry about.

On Wed, Jun 22, 2016 at 7:10 PM, Sean M. Pappalardo - D.J. Pegasus <
spappala...@mixxx.org> wrote:

> Hello.
>
> When linking SQLite into a Windows application using Microsoft Visual
> C++ 2015 (v14,) I get the following errors:
>
> Generating code
> E:\sqlite-amalgamation-3130000\sqlite3.c(57057) : error C4703:
> potentially uninitialized local pointer variable 'pDbPage' used
> E:\sqlite-amalgamation-3130000\sqlite3.c(57124) : error C4703:
> potentially uninitialized local pointer variable 'pDbPage' used
> E:\sqlite-amalgamation-3130000\sqlite3.c(56103) : error C4703:
> potentially uninitialized local pointer variable 'pDbPage' used
> E:\sqlite-amalgamation-3130000\sqlite3.c(49290) : error C4703:
> potentially uninitialized local pointer variable 'pPage' used
> E:\sqlite-amalgamation-3130000\sqlite3.c(64044) : error C4703:
> potentially uninitialized local pointer variable 'pOvflPage' used
> E:\sqlite-amalgamation-3130000\sqlite3.c(50328) : error C4703:
> potentially uninitialized local pointer variable 'pPgHdr' used
> E:\sqlite-amalgamation-3130000\sqlite3.c(49457) : error C4703:
> potentially uninitialized local pointer variable 'pPgHdr' used
> E:\sqlite-amalgamation-3130000\sqlite3.c(59734) : error C4703:
> potentially uninitialized local pointer variable 'pDbPage' used
> E:\sqlite-amalgamation-3130000\sqlite3.c(65222) : error C4703:
> potentially uninitialized local pointer variable 'pSrcPg' used
> E:\sqlite-amalgamation-3130000\sqlite3.c(65322) : error C4703:
> potentially uninitialized local pointer variable 'pPg' used
> LINK : fatal error LNK1257: code generation failed
>
>
> I understand this happens on VS 2013 as well. Now, I can tell it to
> ignore that error number and the process completes fine, but I wanted to
> point out these items in case they are unintended and represent a
> possible bug or security risk.
>
> Thank you for your time!
>
> Sincerely,
> Sean M. Pappalardo
> "D.J. Pegasus"
> Mixxx Developer - Controller Specialist
>
>
> _______________________________________________
> 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

Reply via email to