[New-bugs-announce] [issue5134] Compiler warnings in sqlite module

Raymond Hettinger report at bugs.python.org
Mon Feb 2 19:53:00 CET 2009


New submission from Raymond Hettinger <rhettinger at users.sourceforge.net>:

>From a compilation of Py3.1 r69209 :

..\..\..\sqlite-3.5.9\sqlite3.c(9702) : warning C4244: '=' : conversion
from 'double' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(9703) : warning C4244: '=' : conversion
from 'double' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(9813) : warning C4244: '=' : conversion
from 'double' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(9814) : warning C4244: '=' : conversion
from 'double' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(9817) : warning C4244: '=' : conversion
from 'double' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(9818) : warning C4244: '=' : conversion
from 'double' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(9819) : warning C4244: '=' : conversion
from 'double' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(9820) : warning C4244: '=' : conversion
from 'double' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(9835) : warning C4244: '=' : conversion
from 'double' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(9836) : warning C4244: '=' : conversion
from 'double' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(9838) : warning C4244: '=' : conversion
from 'double' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(9881) : warning C4244: 'initializing' :
conversion from 'double' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(9887) : warning C4244: '=' : conversion
from 'double' to 'time_t', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(9903) : warning C4996: 'localtime': This
function or variable may be unsafe. Consider using localtime_s instead.
To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for
details.
        C:\Program Files\Microsoft Visual Studio
8\VC\include\time.inl(114) : see declaration of 'localtime'
..\..\..\sqlite-3.5.9\sqlite3.c(9998) : warning C4244: '=' : conversion
from 'double' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(10004) : warning C4244: '=' : conversion
from 'double' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(10096) : warning C4244: '+=' :
conversion from 'double' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(10102) : warning C4244: '=' : conversion
from 'double' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(10108) : warning C4244: '+=' :
conversion from 'double' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(10309) : warning C4244: 'function' :
conversion from 'u64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(10340) : warning C4244: '=' : conversion
from 'double' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(11146) : warning C4244: 'return' :
conversion from 'sqlite3_int64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(13798) : warning C4244: '=' : conversion
from 'sqlite3_int64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(14408) : warning C4244: 'initializing' :
conversion from 'sqlite_uint64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(14741) : warning C4244: '=' : conversion
from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(16514) : warning C4244: '=' : conversion
from 'u64' to 'unsigned char', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(16517) : warning C4244: '=' : conversion
from 'u64' to 'unsigned char', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(16524) : warning C4244: '=' : conversion
from 'u64' to 'u8', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(22425) : warning C4244: 'initializing' :
conversion from 'sqlite3_int64' to 'LONG', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(22426) : warning C4244: 'initializing' :
conversion from 'sqlite3_int64' to 'LONG', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(22458) : warning C4244: 'initializing' :
conversion from 'sqlite3_int64' to 'LONG', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(22459) : warning C4244: 'initializing' :
conversion from 'sqlite3_int64' to 'LONG', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(22490) : warning C4244: 'initializing' :
conversion from 'sqlite3_int64' to 'LONG', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(22491) : warning C4244: 'initializing' :
conversion from 'sqlite3_int64' to 'LONG', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(24580) : warning C4018: '>=' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(24597) : warning C4018: '<' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(25331) : warning C4244: 'function' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(25337) : warning C4244: 'function' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(25564) : warning C4244: '=' : conversion
from 'i64' to 'u32', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(25577) : warning C4244: '=' : conversion
from 'i64' to 'u32', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(25592) : warning C4018: '<' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(25696) : warning C4244: '=' : conversion
from 'i64' to 'u32', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(25712) : warning C4244: '=' : conversion
from 'i64' to 'u32', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(25921) : warning C4018: '>' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(26221) : warning C4244: '=' : conversion
from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(26228) : warning C4244: '=' : conversion
from 'i64' to 'Pgno', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(26230) : warning C4244: 'return' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(26314) : warning C4018: '<=' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(26743) : warning C4018: '<=' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(28366) : warning C4018: '<=' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(30256) : warning C4244: 'function' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(30258) : warning C4244: 'function' :
conversion from 'i64' to 'u32', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(30946) : warning C4244: '=' : conversion
from 'u16' to 'unsigned char', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(31766) : warning C4244: '=' : conversion
from 'u16' to 'unsigned char', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(32268) : warning C4018: '>' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(32268) : warning C4018: '<=' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(32933) : warning C4018: '<=' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(33050) : warning C4244: '=' : conversion
from 'i64' to 'u32', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(33055) : warning C4018: '>' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(33251) : warning C4244: '=' : conversion
from 'i64' to 'u32', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(33258) : warning C4018: '>' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(33601) : warning C4244: 'function' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(33651) : warning C4244: 'function' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(33653) : warning C4244: 'function' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(33658) : warning C4244: 'function' :
conversion from 'i64' to 'u32', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(33659) : warning C4244: 'function' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(33918) : warning C4018: '<=' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(34054) : warning C4018: '>' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(34237) : warning C4018: '>' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(34308) : warning C4244: '+=' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(34310) : warning C4244: '=' : conversion
from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(34483) : warning C4244: '=' : conversion
from 'u16' to 'u8', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(34565) : warning C4244: '=' : conversion
from 'u16' to 'u8', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(35959) : warning C4018: '>' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(36488) : warning C4244: '+=' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(36784) : warning C4244: '=' : conversion
from 'i64' to 'Pgno', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(36833) : warning C4244: 'initializing' :
conversion from 'sqlite3_int64' to 'Pgno', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(36910) : warning C4244: 'initializing' :
conversion from 'i64' to 'Pgno', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(37371) : warning C4244: '=' : conversion
from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(37379) : warning C4244: 'function' :
conversion from 'i64' to 'size_t', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(37380) : warning C4244: '+=' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(37731) : warning C4244: '+=' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(37913) : warning C4244: '=' : conversion
from 'const i64' to 'double', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(37918) : warning C4244: '=' : conversion
from 'const i64' to 'double', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(38257) : warning C4244: 'return' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(40178) : warning C4244: 'return' :
conversion from 'i64' to 'u32', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(40194) : warning C4244: '+=' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(40301) : warning C4244: '=' : conversion
from 'u64' to 'u8', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(40315) : warning C4244: '+=' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(40470) : warning C4018: '<' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(40554) : warning C4018: '>=' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(40579) : warning C4018: '<' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(40627) : warning C4244: 'function' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(40672) : warning C4244: 'function' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(41018) : warning C4244: 'return' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(41198) : warning C4244: '=' : conversion
from 'double' to 'i64', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(41228) : warning C4244: '=' : conversion
from 'double' to 'u64', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(43078) : warning C4244: 'function' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(43088) : warning C4244: '=' : conversion
from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(43183) : warning C4244: '=' : conversion
from 'i64' to 'double', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(43924) : warning C4244: '=' : conversion
from 'i64' to 'u32', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(43945) : warning C4018: '>' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(43983) : warning C4018: '>=' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(44001) : warning C4018: '<' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(44018) : warning C4018: '<' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(44206) : warning C4244: '+=' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(44229) : warning C4244: 'function' :
conversion from 'u64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(44241) : warning C4244: 'function' :
conversion from 'u64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(44246) : warning C4244: '=' : conversion
from 'u64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(44463) : warning C4244: '=' : conversion
from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(44467) : warning C4244: '=' : conversion
from 'i64' to 'u8', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(44603) : warning C4244: '=' : conversion
from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(45373) : warning C4244: '=' : conversion
from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(45517) : warning C4244: '=' : conversion
from 'i64' to 'u32', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(45520) : warning C4018: '>' :
signed/unsigned mismatch
..\..\..\sqlite-3.5.9\sqlite3.c(46131) : warning C4244: '=' : conversion
from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(46137) : warning C4244: 'function' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(46563) : warning C4244: '=' : conversion
from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(46564) : warning C4244: '=' : conversion
from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(57437) : warning C4244: 'function' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(57473) : warning C4244: 'function' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(58001) : warning C4244: 'function' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(58273) : warning C4244: 'initializing' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(58274) : warning C4244: 'initializing' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(58275) : warning C4244: 'initializing' :
conversion from 'i64' to 'int', possible loss of data
..\..\..\sqlite-3.5.9\sqlite3.c(71347) : warning C4244: '=' : conversion
from 'u16' to 'unsigned char', possible loss of data

----------
assignee: ghaering
components: Extension Modules
messages: 80983
nosy: ghaering, rhettinger
priority: low
severity: normal
status: open
title: Compiler warnings in sqlite module
type: compile error
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5134>
_______________________________________


More information about the New-bugs-announce mailing list