aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/insert.c1
-rw-r--r--src/shell.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/insert.c b/src/insert.c
index f7c7bed54..11b722171 100644
--- a/src/insert.c
+++ b/src/insert.c
@@ -786,7 +786,6 @@ void sqlite3Insert(
/* If this is not a view, open the table and and all indices */
if( !isView ){
int nIdx;
- Index *pIdx;
nIdx = sqlite3OpenTableAndIndices(pParse, pTab, OP_OpenWrite, 0, -1, 0,
&iDataCur, &iIdxCur);
aRegIdx = sqlite3DbMallocRawNN(db, sizeof(int)*(nIdx+1));
diff --git a/src/shell.c b/src/shell.c
index aaba1080e..1cc4cc223 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -2583,6 +2583,8 @@ static FILE *output_file_open(const char *zFile){
return f;
}
+#if !defined(SQLITE_OMIT_BUILTIN_TEST)
+#if !defined(SQLITE_OMIT_TRACE) && !defined(SQLITE_OMIT_FLOATING_POINT)
/*
** A routine for handling output from sqlite3_trace().
*/
@@ -2603,6 +2605,8 @@ static int sql_trace_callback(
}
return 0;
}
+#endif
+#endif
/*
** A no-op routine that runs with the ".breakpoint" doc-command. This is