aboutsummaryrefslogtreecommitdiff
path: root/src/func.c
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-12-24 15:31:56 +0000
committerstephan <stephan@noemail.net>2022-12-24 15:31:56 +0000
commit6e893aee9500c82bbec46077481e281c0554dfaf (patch)
tree75b68822c7720715b0cb31ea83756078bda50f5b /src/func.c
parent22166f83b4fff60052eef877d36656d0e676e8e1 (diff)
parent4099b3cab3c3451a2d9643738308be0b2d9e44b1 (diff)
downloadsqlite-6e893aee9500c82bbec46077481e281c0554dfaf.tar.gz
sqlite-6e893aee9500c82bbec46077481e281c0554dfaf.zip
Merge trunk into wasi-patches branch.
FossilOrigin-Name: 52f40ab12e437c59af2b91c7ac105ab7784db57fc8d9ab7a1356f17092681f43
Diffstat (limited to 'src/func.c')
-rw-r--r--src/func.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/func.c b/src/func.c
index 3c5a85230..9a62470a0 100644
--- a/src/func.c
+++ b/src/func.c
@@ -1082,7 +1082,7 @@ void sqlite3QuoteValue(StrAccum *pStr, sqlite3_value *pValue){
}
case SQLITE_BLOB: {
char const *zBlob = sqlite3_value_blob(pValue);
- int nBlob = sqlite3_value_bytes(pValue);
+ i64 nBlob = sqlite3_value_bytes(pValue);
assert( zBlob==sqlite3_value_blob(pValue) ); /* No encoding change */
sqlite3StrAccumEnlarge(pStr, nBlob*2 + 4);
if( pStr->accError==0 ){
@@ -1440,6 +1440,9 @@ static void unknownFunc(
sqlite3_value **argv
){
/* no-op */
+ (void)context;
+ (void)argc;
+ (void)argv;
}
#endif /*SQLITE_ENABLE_UNKNOWN_SQL_FUNCTION*/
@@ -2183,6 +2186,7 @@ static void piFunc(
sqlite3_value **argv
){
assert( argc==0 );
+ (void)argv;
sqlite3_result_double(context, M_PI);
}