mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Fix compiler warnings.
FossilOrigin-Name: 6c4f1d5c24522d1f541a2b96b229ad0374f99c19
This commit is contained in:
@ -605,42 +605,6 @@ static int fts3CreateTables(Fts3Table *p){
|
||||
return rc;
|
||||
}
|
||||
|
||||
/*
|
||||
** An sqlite3_exec() callback for fts3TableExists.
|
||||
*/
|
||||
static int fts3TableExistsCallback(void *pArg, int n, char **pp1, char **pp2){
|
||||
UNUSED_PARAMETER(n);
|
||||
UNUSED_PARAMETER(pp1);
|
||||
UNUSED_PARAMETER(pp2);
|
||||
*(int*)pArg = 1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
** Determine if a table currently exists in the database.
|
||||
*/
|
||||
static void fts3TableExists(
|
||||
int *pRc, /* Success code */
|
||||
sqlite3 *db, /* The database connection to test */
|
||||
const char *zDb, /* ATTACHed database within the connection */
|
||||
const char *zName, /* Name of the FTS3 table */
|
||||
const char *zSuffix, /* Shadow table extension */
|
||||
u8 *pResult /* Write results here */
|
||||
){
|
||||
int rc = SQLITE_OK;
|
||||
int res = 0;
|
||||
char *zSql;
|
||||
if( *pRc ) return;
|
||||
zSql = sqlite3_mprintf(
|
||||
"SELECT 1 FROM %Q.sqlite_master WHERE name='%q%s'",
|
||||
zDb, zName, zSuffix
|
||||
);
|
||||
rc = sqlite3_exec(db, zSql, fts3TableExistsCallback, &res, 0);
|
||||
sqlite3_free(zSql);
|
||||
*pResult = (u8)(res & 0xff);
|
||||
if( rc!=SQLITE_ABORT ) *pRc = rc;
|
||||
}
|
||||
|
||||
/*
|
||||
** Store the current database page-size in bytes in p->nPgsz.
|
||||
**
|
||||
|
@ -2649,16 +2649,6 @@ static int newRowid(Rtree *pRtree, i64 *piRowid){
|
||||
return rc;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
static int hashIsEmpty(Rtree *pRtree){
|
||||
int ii;
|
||||
for(ii=0; ii<HASHSIZE; ii++){
|
||||
assert( !pRtree->aHash[ii] );
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
** The xUpdate method for rtree module virtual tables.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user