I'm suspecting there's something wrong with Studio Express C++.
I use both 2008 and 2010 and I notice on 2008 that the IDE loses track of code 
in case of large source files. Sometimes comments that should have a certain 
colour have a different one and so on.

For example, the first warning at line 120736 there is a variable 'area' which 
is of type 'float' defined just 3 lines above. Yet in the line at 120736:

area = area * (DCOORD(p->aCoord[ii+1]) - DCOORD(p->aCoord[ii]));

the IntelliSense shows that the second instance of 'area' is of type 'int'.

To prove this is a problem specific only to Microsoft's IDEs, could you give 
the 
simplest code example (with SQLITE_ENABLE_RTREE=1) to compile it and see if we 
get different results with the warnings?



Marian Cascaval




________________________________
From: Afriza N. Arief <[email protected]>
To: General Discussion of SQLite Database <[email protected]>
Sent: Thu, February 17, 2011 7:26:33 AM
Subject: [sqlite] Compiler warnings in R-Tree code under Visual Studio Express

Hi,

Microsoft Visual Studio Express C++ is available for free from
http://www.microsoft.com/express/Downloads/#2010-Visual-CPP

I tried to compile SQLite 3.7.5 with SQLITE_ENABLE_RTREE=1 and got the
following warnings:

sqlite3.c(120736): warning C4244: '=' : conversion from 'double' to 'float',
possible loss of data
sqlite3.c(120749): warning C4244: '+=' : conversion from 'double' to
'float', possible loss of data
sqlite3.c(120834): warning C4244: '=' : conversion from 'double' to 'float',
possible loss of data
sqlite3.c(121803): warning C4244: '+=' : conversion from 'double' to
'float', possible loss of data
sqlite3.c(121804): warning C4244: '+=' : conversion from 'double' to
'float', possible loss of data
sqlite3.c(121808): warning C4244: '=' : conversion from 'double' to 'float',
possible loss of data
sqlite3.c(121815): warning C4244: 'initializing' : conversion from 'double'
to 'float', possible loss of data
sqlite3.c(121914): warning C4244: 'function' : conversion from 'i64' to
'int', possible loss of data
sqlite3.c(121917): warning C4244: 'function' : conversion from 'i64' to
'int', possible loss of data

Thank you,

Afriza N. Arief
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users



      
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to