aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2022-02-04 13:15:01 +0000
committerdrh <>2022-02-04 13:15:01 +0000
commit69b0ce33fd4b1be019be2d64dd99c6bc7ccf5693 (patch)
treeb20b645345a6ba406c0b95efb5a006c30432b6ca /src
parent02e3e041343e6ac950771bb5ef813f1876f5036b (diff)
downloadsqlite-69b0ce33fd4b1be019be2d64dd99c6bc7ccf5693.tar.gz
sqlite-69b0ce33fd4b1be019be2d64dd99c6bc7ccf5693.zip
Fix various harmless compiler warnings.
FossilOrigin-Name: 70049342d5ad57ea3e863bba19253934b868bacdd1c26c9371bac024a829badf
Diffstat (limited to 'src')
-rw-r--r--src/expr.c1
-rw-r--r--src/func.c1
-rw-r--r--src/json.c2
-rw-r--r--src/whereInt.h4
4 files changed, 4 insertions, 4 deletions
diff --git a/src/expr.c b/src/expr.c
index d58097cb6..af28fd6d2 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -3497,7 +3497,6 @@ static void sqlite3ExprCodeIN(
}else{
destStep2 = destStep6 = sqlite3VdbeMakeLabel(pParse);
}
-// if( pParse->nErr ) goto sqlite3ExprCodeIN_finished;
for(i=0; i<nVector; i++){
Expr *p = sqlite3VectorFieldSubexpr(pExpr->pLeft, i);
if( pParse->nErr ) goto sqlite3ExprCodeIN_oom_error;
diff --git a/src/func.c b/src/func.c
index 81accc9cc..d7ca756de 100644
--- a/src/func.c
+++ b/src/func.c
@@ -106,6 +106,7 @@ static void subtypeFunc(
int argc,
sqlite3_value **argv
){
+ UNUSED_PARAMETER(argc);
sqlite3_result_int(context, sqlite3_value_subtype(argv[0]));
}
diff --git a/src/json.c b/src/json.c
index 3f12f03fd..ab1d32d6a 100644
--- a/src/json.c
+++ b/src/json.c
@@ -2666,7 +2666,7 @@ int sqlite3JsonTableFunctions(sqlite3 *db){
{ "json_each", &jsonEachModule },
{ "json_tree", &jsonTreeModule },
};
- int i;
+ unsigned int i;
for(i=0; i<sizeof(aMod)/sizeof(aMod[0]) && rc==SQLITE_OK; i++){
rc = sqlite3_create_module(db, aMod[i].zName, aMod[i].pModule, 0);
}
diff --git a/src/whereInt.h b/src/whereInt.h
index 8cd414487..3fc39f6b4 100644
--- a/src/whereInt.h
+++ b/src/whereInt.h
@@ -123,8 +123,8 @@ struct WhereLoop {
} btree;
struct { /* Information for virtual tables */
int idxNum; /* Index number */
- u8 needFree : 1; /* True if sqlite3_free(idxStr) is needed */
- u8 bOmitOffset : 1; /* True to let virtual table handle offset */
+ u32 needFree : 1; /* True if sqlite3_free(idxStr) is needed */
+ u32 bOmitOffset : 1; /* True to let virtual table handle offset */
i8 isOrdered; /* True if satisfies ORDER BY */
u16 omitMask; /* Terms that may be omitted */
char *idxStr; /* Index identifier string */