Hmmm...interesting...I'm using VS 2010 Express 32-bit and I would've assumed the warnings would match. I also enabled SQLITE_64BIT_STATS to try and force the first warning but that didn't cause it. Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
That's a bit disconcerting actually but I guess Express is less pedantic than Studio. You can always stick this in to shut it up. There's a yin yang to fixing these....simple enough to throw a cast in there...but down the road if you make other changes on the right-hand-side datatype that could be of use so you would be suppressing a valid warning. It's a mixed bag. So suppressing warnings from picky compilers is the best way to go. Do you still see then on lower levels? #pragma warning(disable: 4244) // possible loss of data Michael D. Black Senior Scientist Advanced Analytics Directorate Advanced GEOINT Solutions Operating Unit Northrop Grumman Information Systems ________________________________________ From: sqlite-users-boun...@sqlite.org [sqlite-users-boun...@sqlite.org] on behalf of Jonas Malaco Filho [jonasmalacofi...@gmail.com] Sent: Saturday, November 03, 2012 3:48 PM To: General Discussion of SQLite Database Subject: EXT :Re: [sqlite] Compiling SQLite3 with MSVC 2010 Actually, on MSVC 2010 I just got the following errors with /W3: ------ Rebuild All started: Project: Shell, Configuration: Release x64 ------ shell.c sqlite3.c ..\src\sqlite3.c(78502): warning C4244: 'initializing' : conversion from 'sqlite_int64' to 'tRowcnt', possible loss of data ..\src\sqlite3.c(78503): warning C4244: 'initializing' : conversion from 'sqlite_int64' to 'tRowcnt', possible loss of data ..\src\sqlite3.c(78504): warning C4244: 'initializing' : conversion from 'sqlite_int64' to 'tRowcnt', possible loss of data ..\src\sqlite3.c(104145): warning C4244: '=' : conversion from 'i64' to 'double', possible loss of data ..\src\sqlite3.c(104170): warning C4244: '=' : conversion from 'i64' to 'double', possible loss of data Generating code Finished generating code Shell.vcxproj -> X:\jonas-malaco-filho\lib\SQLite\Shell\..\bin\x86-64\sqlite3.exe ------ Rebuild All started: Project: Shell, Configuration: Release Win32 ------ shell.c sqlite3.c ..\src\sqlite3.c(78502): warning C4244: 'initializing' : conversion from 'sqlite_int64' to 'tRowcnt', possible loss of data ..\src\sqlite3.c(78503): warning C4244: 'initializing' : conversion from 'sqlite_int64' to 'tRowcnt', possible loss of data ..\src\sqlite3.c(78504): warning C4244: 'initializing' : conversion from 'sqlite_int64' to 'tRowcnt', possible loss of data ..\src\sqlite3.c(104145): warning C4244: '=' : conversion from 'i64' to 'double', possible loss of data ..\src\sqlite3.c(104170): warning C4244: '=' : conversion from 'i64' to 'double', possible loss of data Generating code Finished generating code Shell.vcxproj -> X:\jonas-malaco-filho\lib\SQLite\Shell\..\bin\x86\sqlite3.exe ========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ========== *Jonas Malaco Filho* 2012/11/3 Black, Michael (IS) <michael.bla...@ngc.com> > You probably have the warning level turned up high. > > Up to level 3 it compiles without warnings. Level 4 starts complaining > loudly. > > > Michael D. Black > Senior Scientist > Advanced Analytics Directorate > Advanced GEOINT Solutions Operating Unit > Northrop Grumman Information Systems > > ________________________________________ > From: sqlite-users-boun...@sqlite.org [sqlite-users-boun...@sqlite.org] > on behalf of Igor Korot [ikoro...@gmail.com] > Sent: Friday, November 02, 2012 6:25 PM > To: General Discussion of SQLite Database > Subject: EXT :Re: [sqlite] Compiling SQLite3 with MSVC 2010 > > Richard, > > On Fri, Nov 2, 2012 at 4:14 PM, Richard Hipp <d...@sqlite.org> wrote: > > On Fri, Nov 2, 2012 at 7:05 PM, Igor Korot <ikoro...@gmail.com> wrote: > > > >> Hi, ALL, > >> Is anybody trying to compile SQLite with MSVC 2010? > >> > > > > Tests 9e and 9f at http://www.sqlite.org/checklists/3071400#c9 were > > performed using MSVC 2010. > > > > > >> > >> I am getting a lot of warnings. > >> Is there any interest in fixing those? > >> > > > > No. See http://www.sqlite.org/testing.html#staticanalysis for an > > explanation. > > I just read this link. Interesting information. > IIUC, all those warnings are harmless and they do not appear on other > platforms. > Which means that either gcc is more forgiving or that I am trying to > compile my > application with some very strange configuration. > Or maybe it's C++11 that throws the compilation off of track? > > I'm just trying to understand why those warnings appear and why nobody else > see them on other platforms. > > Thank you. > > > > > > >> > >> If not what is the policy of using SQLite3 code? I'm using 3.7.14 > release. > >> > >> Thank you. > >> _______________________________________________ > >> sqlite-users mailing list > >> sqlite-users@sqlite.org > >> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > >> > > > > > > > > -- > > D. Richard Hipp > > d...@sqlite.org > > _______________________________________________ > > sqlite-users mailing list > > sqlite-users@sqlite.org > > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users