mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Fix harmless compiler warnings.
FossilOrigin-Name: cc8efe0494b8fe0df18aa67b1675779bf704d1ac53647fe1f7f55d8048041680
This commit is contained in:
@ -38,7 +38,7 @@ int sqlite3_mmap_warm(sqlite3 *db, const char *zDb){
|
||||
int rc = SQLITE_OK;
|
||||
char *zSql = 0;
|
||||
int pgsz = 0;
|
||||
int nTotal = 0;
|
||||
unsigned int nTotal = 0;
|
||||
|
||||
if( 0==sqlite3_get_autocommit(db) ) return SQLITE_MISUSE;
|
||||
|
||||
@ -86,8 +86,8 @@ int sqlite3_mmap_warm(sqlite3 *db, const char *zDb){
|
||||
rc = p->xFetch(pFd, pgsz*iPg, pgsz, (void**)&pMap);
|
||||
if( rc!=SQLITE_OK || pMap==0 ) break;
|
||||
|
||||
nTotal += pMap[0];
|
||||
nTotal += pMap[pgsz-1];
|
||||
nTotal += (unsigned int)pMap[0];
|
||||
nTotal += (unsigned int)pMap[pgsz-1];
|
||||
|
||||
rc = p->xUnfetch(pFd, pgsz*iPg, (void*)pMap);
|
||||
if( rc!=SQLITE_OK ) break;
|
||||
@ -103,5 +103,6 @@ int sqlite3_mmap_warm(sqlite3 *db, const char *zDb){
|
||||
if( rc==SQLITE_OK ) rc = rc2;
|
||||
}
|
||||
|
||||
(void)nTotal;
|
||||
return rc;
|
||||
}
|
||||
|
Reference in New Issue
Block a user