mirror of
https://github.com/holub/mame
synced 2025-10-04 16:34:53 +03:00
fixed Visual Studio compiler warnings in sqlite3 when compiling with optimizations (nw)
This commit is contained in:
parent
70bab0a3d7
commit
780297a034
9
3rdparty/sqlite3/sqlite3.c
vendored
9
3rdparty/sqlite3/sqlite3.c
vendored
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user