/ View Ticket
Login
Ticket Hash: 03b198a2faeb91b0082ac364269f4185af65f9c4
Title: Getting several warnings when compiling in eVC++ 4
Status: Fixed Type: Compiler_Warning
Severity: Minor Priority: Low
Subsystem: VFS Resolution: Fixed
Last Modified: 2009-09-14 16:50:08
Version Found In: 3.6.17
Description:
When compiling in Embedded Visual C++ 4.0 for HUW_MAXALL Win32 (WCE ARMV4) I get the following warnings. (for Microsoft Windows CE .Net v4.20)
c:\source path\sqlite3.c(11191) : warning C4244: '=' : conversion from '__int64 ' to 'unsigned long ', possible loss of data
c:\source path\sqlite3.c(26767) : warning C4244: '=' : conversion from '__int64 ' to 'unsigned long ', possible loss of data
c:\source path\sqlite3.c(26768) : warning C4244: '=' : conversion from '__int64 ' to 'unsigned long ', possible loss of data
c:\source path\sqlite3.c(26924) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
c:\source path\sqlite3.c(26932) : warning C4018: '==' : signed/unsigned mismatch
c:\source path\sqlite3.c(26941) : warning C4018: '==' : signed/unsigned mismatch
c:\source path\sqlite3.c(26953) : warning C4018: '==' : signed/unsigned mismatch
c:\source path\sqlite3.c(26963) : warning C4018: '==' : signed/unsigned mismatch
c:\source path\sqlite3.c(26985) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
c:\source path\sqlite3.c(26992) : warning C4018: '>=' : signed/unsigned mismatch
c:\source path\sqlite3.c(26993) : warning C4018: '<' : signed/unsigned mismatch
c:\source path\sqlite3.c(27013) : warning C4018: '==' : signed/unsigned mismatch
c:\source path\sqlite3.c(27021) : warning C4018: '==' : signed/unsigned mismatch
c:\source path\sqlite3.c(27046) : warning C4018: '==' : signed/unsigned mismatch
c:\source path\sqlite3.c(28077) : warning C4002: too many actual parameters for macro 'GetDiskFreeSpaceW'
c:\source path\sqlite3.c(28052) : warning C4101: 'dwDummy' : unreferenced local variable

I don't use any sqlite precomile definition besides: _WIN32_WCE=$(CEVersion),$(CePlatform),ARM,_ARM_,ARMV4,UNDER_CE=$(CEVersion),UNICODE,_UNICODE,NDEBUG

The code compiles, with the same source, just fine in Visual Studio 2005 with the Windows Mobile kit.


shane added on 2009-09-14 15:50:40:
Fixed several warnings when compiling at highest warning level under MSVC 2005. See check-ins [f42ec993ac] and [1f0a93e17d]