1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Fix harmless compiler warnings that arise with -DSQLITE_OMIT_LOAD_EXTENSION

FossilOrigin-Name: 65ba2f0b465a1493de6e467f55e0300ac3fb08e1
This commit is contained in:
drh
2016-03-17 23:16:37 +00:00
parent 790b151e19
commit 9493cafe6f
6 changed files with 23 additions and 17 deletions

View File

@ -1757,8 +1757,10 @@ int main(int argc, char **argv){
char *zTab = 0;
FILE *out = stdout;
void (*xDiff)(const char*,FILE*) = diff_one_table;
#ifndef SQLITE_OMIT_LOAD_EXTENSION
int nExt = 0;
char **azExt = 0;
#endif
int useTransaction = 0;
int neverUseTransaction = 0;
@ -1841,8 +1843,8 @@ int main(int argc, char **argv){
cmdlineError("error loading %s: %s", azExt[i], zErrMsg);
}
}
#endif
free(azExt);
#endif
zSql = sqlite3_mprintf("ATTACH %Q as aux;", zDb2);
rc = sqlite3_exec(g.db, zSql, 0, 0, &zErrMsg);
if( rc || zErrMsg ){