fixed Visual Studio compiler warnings in sqlite3 when compiling with optimizations (nw)

This commit is contained in:
Oliver Stöneberg 2015-04-05 09:51:59 +02:00
parent 70bab0a3d7
commit 780297a034

View File

@ -72821,6 +72821,9 @@ case OP_Found: { /* jump, in3 */
UnpackedRecord r;
char aTempRec[ROUND8(sizeof(UnpackedRecord)) + sizeof(Mem)*4 + 7];
// MAME: fixed Visual Studio warning about potentially uninitialized variable with optimizations enabled
memset(&r, 0x00, sizeof(UnpackedRecord));
#ifdef SQLITE_TEST
if( pOp->opcode!=OP_NoConflict ) sqlite3_found_count++;
#endif
@ -93564,8 +93567,10 @@ SQLITE_PRIVATE void sqlite3DeleteFrom(
WhereInfo *pWInfo; /* Information about the WHERE clause */
Index *pIdx; /* For looping over indices of the table */
int iTabCur; /* Cursor number for the table */
int iDataCur; /* VDBE cursor for the canonical data source */
int iIdxCur; /* Cursor number of the first index */
// MAME: fixed Visual Studio warning about potentially uninitialized variable with optimizations enabled
int iDataCur = 0; /* VDBE cursor for the canonical data source */
// MAME: fixed Visual Studio warning about potentially uninitialized variable with optimizations enabled
int iIdxCur = 0; /* Cursor number of the first index */
int nIdx; /* Number of indices */
sqlite3 *db; /* Main database structure */
AuthContext sContext; /* Authorization context */