Fix unused variable found by emscripten in sqlite3.c.

This commit is contained in:
Relintai 2022-07-27 19:04:04 +02:00
parent 08c0756260
commit 8ef56d4752

View File

@ -58541,7 +58541,7 @@ SQLITE_PRIVATE int sqlite3PagerOpen(
u32 szPageDflt = SQLITE_DEFAULT_PAGE_SIZE; /* Default page size */ u32 szPageDflt = SQLITE_DEFAULT_PAGE_SIZE; /* Default page size */
const char *zUri = 0; /* URI args to copy */ const char *zUri = 0; /* URI args to copy */
int nUriByte = 1; /* Number of bytes of URI args at *zUri */ int nUriByte = 1; /* Number of bytes of URI args at *zUri */
int nUri = 0; /* Number of URI parameters */ //int nUri = 0; /* Number of URI parameters */
/* Figure out how much space is required for each journal file-handle /* Figure out how much space is required for each journal file-handle
** (there are two of them, the main journal and the sub-journal). */ ** (there are two of them, the main journal and the sub-journal). */
@ -58589,7 +58589,7 @@ SQLITE_PRIVATE int sqlite3PagerOpen(
while( *z ){ while( *z ){
z += strlen(z)+1; z += strlen(z)+1;
z += strlen(z)+1; z += strlen(z)+1;
nUri++; //nUri++;
} }
nUriByte = (int)(&z[1] - zUri); nUriByte = (int)(&z[1] - zUri);
assert( nUriByte>=1 ); assert( nUriByte>=1 );