I am having difficulty getting a clean build under Visual Studio. I
believe I have followed the advice given at
http://www.sqlite.org/cvstrac/wiki?p=VsNetSolution. I am getting lots of errors of the sort: ...\\sqlite3\\vdbemem.c(194) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data I could just turn off the warnings, but that seems kind of wreckless. The output from the compile is attached. I am also getting: Run-Time Check Failure #2 - Stack around the variable 'ts' was corrupted."This is in vdbe.c Although it is not at the same variable every time. I am running a single threaded app. This is what has lead me to want to fix the compiler warnings. Any suggestions? I'm hoping for a recommended change in my preprocessors settings. Drastic modifications to sqlite does not seem appropriate. Current preprocessor definitions are: WIN32 |
Deleting intermediate files and output files for project 'sqlite3', configuration 'Debug|Win32'. Compiling... where.c vdbemem.c ...\\sqlite3\\vdbemem.c(194) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\vdbemem.c(319) : warning C4244: '=' : conversion from 'double' to 'i64', possible loss of data ...\\sqlite3\\vdbemem.c(491) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\vdbemem.c(557) : warning C4244: '=' : conversion from 'const i64' to 'double', possible loss of data ...\\sqlite3\\vdbemem.c(562) : warning C4244: '=' : conversion from 'const i64' to 'double', possible loss of data ...\\sqlite3\\vdbemem.c(779) : warning C4311: 'type cast' : pointer truncation from 'char *' to 'int' ...\\sqlite3\\vdbemem.c(859) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data vdbefifo.c vdbeaux.c ...\\sqlite3\\vdbeaux.c(482) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\vdbeaux.c(527) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\vdbeaux.c(531) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\vdbeaux.c(564) : warning C4018: '<=' : signed/unsigned mismatch ...\\sqlite3\\vdbeaux.c(659) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\vdbeaux.c(676) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\vdbeaux.c(862) : warning C4244: 'function' : conversion from '__w64 int' to 'int', possible loss of data ...\\sqlite3\\vdbeaux.c(1034) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\vdbeaux.c(1595) : warning C4244: 'return' : conversion from 'i64' to 'u32', possible loss of data ...\\sqlite3\\vdbeaux.c(1651) : warning C4244: '=' : conversion from 'u64' to 'unsigned char', possible loss of data ...\\sqlite3\\vdbeaux.c(1813) : warning C4018: '>=' : signed/unsigned mismatch ...\\sqlite3\\vdbeaux.c(1815) : warning C4018: '>=' : signed/unsigned mismatch ...\\sqlite3\\vdbeaux.c(1841) : warning C4018: '<' : signed/unsigned mismatch ...\\sqlite3\\vdbeaux.c(1843) : warning C4018: '<' : signed/unsigned mismatch ...\\sqlite3\\vdbeaux.c(1887) : warning C4244: 'function' : conversion from 'i64' to 'int', possible loss of data ...\\sqlite3\\vdbeaux.c(1926) : warning C4244: 'function' : conversion from 'i64' to 'int', possible loss of data vdbeapi.c ...\\sqlite3\\vdbeapi.c(55) : warning C4244: 'return' : conversion from 'i64' to 'int', possible loss of data ...\\sqlite3\\vdbeapi.c(152) : warning C4047: 'initializing' : 'DWORD' differs in levels of indirection from 'HANDLE' ...\\sqlite3\\vdbeapi.c(162) : warning C4047: '==' : 'HANDLE' differs in levels of indirection from 'DWORD' ...\\sqlite3\\vdbeapi.c(208) : warning C4244: '=' : conversion from 'double' to 'i64', possible loss of data ...\\sqlite3\\vdbeapi.c(245) : warning C4244: '=' : conversion from 'double' to 'u64', possible loss of data vdbe.c ...\\sqlite3\\vdbe.c(665) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\vdbe.c(680) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\vdbe.c(696) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\vdbe.c(755) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\vdbe.c(1938) : warning C4244: '=' : conversion from 'i64' to 'u32', possible loss of data ...\\sqlite3\\vdbe.c(2004) : warning C4018: '>=' : signed/unsigned mismatch ...\\sqlite3\\vdbe.c(2020) : warning C4018: '<' : signed/unsigned mismatch ...\\sqlite3\\vdbe.c(2035) : warning C4018: '<' : signed/unsigned mismatch ...\\sqlite3\\vdbe.c(2457) : warning C4244: '=' : conversion from 'i64' to 'int', possible loss of data ...\\sqlite3\\vdbe.c(2461) : warning C4244: '=' : conversion from 'i64' to 'u8', possible loss of data ...\\sqlite3\\vdbe.c(2561) : warning C4244: '=' : conversion from 'i64' to 'int', possible loss of data ...\\sqlite3\\vdbe.c(2579) : warning C4244: '=' : conversion from 'i64' to 'int', possible loss of data ...\\sqlite3\\vdbe.c(3452) : warning C4244: '=' : conversion from 'i64' to 'u32', possible loss of data ...\\sqlite3\\vdbe.c(4125) : warning C4244: '=' : conversion from 'i64' to 'int', possible loss of data ...\\sqlite3\\vdbe.c(4138) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data vacuum.c ...\\sqlite3\\vacuum.c(131) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data util.c ...\\sqlite3\\util.c(725) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\util.c(757) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\util.c(1042) : warning C4244: 'return' : conversion from '__w64 int' to 'int', possible loss of data ...\\sqlite3\\util.c(1227) : warning C4244: '=' : conversion from 'u64' to 'unsigned char', possible loss of data ...\\sqlite3\\util.c(1230) : warning C4244: '=' : conversion from 'u64' to 'unsigned char', possible loss of data ...\\sqlite3\\util.c(1237) : warning C4244: '=' : conversion from 'u64' to 'u8', possible loss of data ...\\sqlite3\\util.c(1356) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data utf.c ...\\sqlite3\\utf.c(336) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data ...\\sqlite3\\utf.c(353) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data ...\\sqlite3\\utf.c(501) : warning C4244: 'return' : conversion from '__w64 int' to 'int', possible loss of data ...\\sqlite3\\utf.c(549) : warning C4244: 'function' : conversion from '__w64 int' to 'int', possible loss of data update.c trigger.c ...\\sqlite3\\trigger.c(113) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\trigger.c(260) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\trigger.c(265) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\trigger.c(454) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\trigger.c(476) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\trigger.c(540) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\trigger.c(631) : warning C4267: '=' : conversion from 'size_t' to 'unsigned int', possible loss of data tokenize.c table.c ...\\sqlite3\\table.c(149) : warning C4312: 'type cast' : conversion from 'int' to 'char *' of greater size ...\\sqlite3\\table.c(194) : warning C4311: 'type cast' : pointer truncation from 'char *' to 'int' select.c ...\\sqlite3\\select.c(183) : warning C4267: '=' : conversion from 'size_t' to 'unsigned int', possible loss of data ...\\sqlite3\\select.c(977) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\select.c(1005) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data random.c printf.c ...\\sqlite3\\printf.c(415) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data ...\\sqlite3\\printf.c(428) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data ...\\sqlite3\\printf.c(553) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data ...\\sqlite3\\printf.c(598) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\printf.c(646) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\printf.c(649) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data prepare.c ...\\sqlite3\\prepare.c(577) : warning C4244: 'function' : conversion from '__w64 int' to 'int', possible loss of data pragma.c ...\\sqlite3\\pragma.c(49) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data parse.c parse.y(156) : warning C4244: '=' : conversion from '__w64 unsigned int' to 'unsigned int', possible loss of data parse.y(231) : warning C4244: '=' : conversion from '__w64 int' to 'unsigned int', possible loss of data parse.y(235) : warning C4244: '=' : conversion from '__w64 int' to 'unsigned int', possible loss of data parse.y(921) : warning C4244: '=' : conversion from '__w64 unsigned int' to 'unsigned int', possible loss of data pager.c ...\\sqlite3\\pager.c(566) : warning C4018: '<' : signed/unsigned mismatch ...\\sqlite3\\pager.c(762) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\pager.c(1097) : warning C4244: 'function' : conversion from 'i64' to 'int', possible loss of data ...\\sqlite3\\pager.c(1102) : warning C4244: 'function' : conversion from 'i64' to 'int', possible loss of data ...\\sqlite3\\pager.c(1312) : warning C4244: '=' : conversion from 'i64' to 'u32', possible loss of data ...\\sqlite3\\pager.c(1330) : warning C4018: '<' : signed/unsigned mismatch ...\\sqlite3\\pager.c(1446) : warning C4244: '=' : conversion from 'i64' to 'u32', possible loss of data ...\\sqlite3\\pager.c(1463) : warning C4244: '=' : conversion from 'i64' to 'u32', possible loss of data ...\\sqlite3\\pager.c(1640) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\pager.c(1822) : warning C4244: '=' : conversion from 'i64' to 'int', possible loss of data ...\\sqlite3\\pager.c(1828) : warning C4244: 'return' : conversion from 'i64' to 'int', possible loss of data ...\\sqlite3\\pager.c(1926) : warning C4018: '<=' : signed/unsigned mismatch ...\\sqlite3\\pager.c(2305) : warning C4018: '<=' : signed/unsigned mismatch ...\\sqlite3\\pager.c(3688) : warning C4018: '<=' : signed/unsigned mismatch Generating Code... Compiling... os_win.c ...\\sqlite3\\os_win.c(809) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\os_win.c(813) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\os_win.c(913) : warning C4244: 'initializing' : conversion from 'i64' to 'LONG', possible loss of data ...\\sqlite3\\os_win.c(914) : warning C4244: 'initializing' : conversion from 'i64' to 'LONG', possible loss of data ...\\sqlite3\\os_win.c(955) : warning C4244: 'initializing' : conversion from 'i64' to 'LONG', possible loss of data ...\\sqlite3\\os_win.c(959) : warning C4244: 'function' : conversion from 'i64' to 'LONG', possible loss of data ...\\sqlite3\\os_win.c(1295) : warning C4311: 'type cast' : pointer truncation from 'HANDLE' to 'int' os.c opcodes.c main.c ...\\sqlite3\\main.c(413) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\main.c(773) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\main.c(783) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data legacy.c insert.c ...\\sqlite3\\insert.c(993) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\insert.c(996) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data hash.c ...\\sqlite3\\hash.c(105) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data func.c ...\\sqlite3\\func.c(859) : warning C4244: 'initializing' : conversion from 'i64' to 'int', possible loss of data ...\\sqlite3\\func.c(860) : warning C4244: 'initializing' : conversion from 'i64' to 'int', possible loss of data ...\\sqlite3\\func.c(861) : warning C4244: 'initializing' : conversion from 'i64' to 'int', possible loss of data ...\\sqlite3\\func.c(1045) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\func.c(1067) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\func.c(1089) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data expr.c delete.c date.c ...\\sqlite3\\date.c(233) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data ...\\sqlite3\\date.c(234) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data ...\\sqlite3\\date.c(339) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data ...\\sqlite3\\date.c(340) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data ...\\sqlite3\\date.c(343) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data ...\\sqlite3\\date.c(344) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data ...\\sqlite3\\date.c(345) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data ...\\sqlite3\\date.c(346) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data ...\\sqlite3\\date.c(360) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data ...\\sqlite3\\date.c(361) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data ...\\sqlite3\\date.c(363) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data ...\\sqlite3\\date.c(407) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data ...\\sqlite3\\date.c(413) : warning C4244: '=' : conversion from 'double' to 'time_t', possible loss of data ...\\sqlite3\\date.c(508) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data ...\\sqlite3\\date.c(514) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data ...\\sqlite3\\date.c(590) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\date.c(606) : warning C4244: '+=' : conversion from 'double' to 'int', possible loss of data ...\\sqlite3\\date.c(612) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data ...\\sqlite3\\date.c(618) : warning C4244: '+=' : conversion from 'double' to 'int', possible loss of data ...\\sqlite3\\date.c(812) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data ...\\sqlite3\\date.c(813) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data ...\\sqlite3\\date.c(815) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\date.c(827) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data ...\\sqlite3\\date.c(839) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\date.c(844) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\date.c(849) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data complete.c callback.c ...\\sqlite3\\callback.c(28) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\callback.c(59) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\callback.c(160) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data build.c ...\\sqlite3\\build.c(183) : warning C4244: 'function' : conversion from '__w64 int' to 'int', possible loss of data ...\\sqlite3\\build.c(262) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\build.c(320) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\build.c(347) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\build.c(363) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\build.c(552) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\build.c(556) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\build.c(620) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\build.c(1216) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\build.c(1302) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\build.c(1319) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\build.c(1324) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\build.c(1330) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\build.c(1481) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data ...\\sqlite3\\build.c(1531) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\build.c(1538) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\build.c(1555) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data ...\\sqlite3\\build.c(1624) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data ...\\sqlite3\\build.c(2036) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\build.c(2073) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\build.c(2342) : warning C4267: '=' : conversion from 'size_t' to 'unsigned int', possible loss of data ...\\sqlite3\\build.c(2354) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\build.c(2361) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data ...\\sqlite3\\build.c(2490) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data btree.c ...\\sqlite3\\btree.c(538) : warning C4244: 'function' : conversion from 'i64' to 'int', possible loss of data ...\\sqlite3\\btree.c(540) : warning C4244: 'function' : conversion from 'i64' to 'u32', possible loss of data ...\\sqlite3\\btree.c(2402) : warning C4018: '>' : signed/unsigned mismatch ...\\sqlite3\\btree.c(2402) : warning C4018: '<=' : signed/unsigned mismatch ...\\sqlite3\\btree.c(2990) : warning C4244: '=' : conversion from 'i64' to 'u32', possible loss of data ...\\sqlite3\\btree.c(2996) : warning C4018: '>' : signed/unsigned mismatch ...\\sqlite3\\btree.c(3129) : warning C4244: '=' : conversion from 'i64' to 'u32', possible loss of data ...\\sqlite3\\btree.c(3136) : warning C4018: '>' : signed/unsigned mismatch ...\\sqlite3\\btree.c(3448) : warning C4244: 'function' : conversion from 'i64' to 'int', possible loss of data ...\\sqlite3\\btree.c(3448) : warning C4244: 'function' : conversion from 'i64' to 'int', possible loss of data ...\\sqlite3\\btree.c(3450) : warning C4244: 'function' : conversion from 'i64' to 'int', possible loss of data ...\\sqlite3\\btree.c(3452) : warning C4244: 'function' : conversion from 'i64' to 'u32', possible loss of data ...\\sqlite3\\btree.c(3453) : warning C4244: 'function' : conversion from 'i64' to 'int', possible loss of data ...\\sqlite3\\btree.c(3453) : warning C4244: 'function' : conversion from 'i64' to 'int', possible loss of data ...\\sqlite3\\btree.c(3817) : warning C4018: '>' : signed/unsigned mismatch ...\\sqlite3\\btree.c(3970) : warning C4018: '>' : signed/unsigned mismatch ...\\sqlite3\\btree.c(4038) : warning C4244: '+=' : conversion from 'i64' to 'int', possible loss of data ...\\sqlite3\\btree.c(4040) : warning C4244: '=' : conversion from 'i64' to 'int', possible loss of data ...\\sqlite3\\btree.c(5591) : warning C4018: '>' : signed/unsigned mismatch ...\\sqlite3\\btree.c(6281) : warning C4244: '+=' : conversion from 'i64' to 'int', possible loss of data auth.c attach.c ...\\sqlite3\\attach.c(316) : warning C4267: 'function' : conversion from 'size_t' to 'int', possible loss of data analyze.c alter.c Generating Code... Linking... Creating library Debug/sqlite3.lib and object Debug/sqlite3.exp
Build log was saved at "file:...\\sqlite3\\Debug\\BuildLog.htm" sqlite3 - 0 error(s), 186 warning(s) ---------------------- Done ---------------------- Rebuild All: 1 succeeded, 0 failed, 0 skipped
----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------