aboutsummaryrefslogtreecommitdiff
path: root/ext/misc/regexp.c
diff options
context:
space:
mode:
authordrh <>2021-06-04 16:11:19 +0000
committerdrh <>2021-06-04 16:11:19 +0000
commitabc15f1b9a8e634feedbe48387f9c143b60fb509 (patch)
tree4da00eb11ac00b4793119754e3505d6ee4c9c266 /ext/misc/regexp.c
parent9718bca77fd2526d3261af9a454b2c259f0fdc95 (diff)
downloadsqlite-abc15f1b9a8e634feedbe48387f9c143b60fb509.tar.gz
sqlite-abc15f1b9a8e634feedbe48387f9c143b60fb509.zip
Fix harmless compiler warnings.
FossilOrigin-Name: 83aca2d8704e51eeed5652b1506c6fc883c0397728cda456f229369788b8608a
Diffstat (limited to 'ext/misc/regexp.c')
-rw-r--r--ext/misc/regexp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/misc/regexp.c b/ext/misc/regexp.c
index 47103d710..95eb5c083 100644
--- a/ext/misc/regexp.c
+++ b/ext/misc/regexp.c
@@ -677,7 +677,7 @@ static const char *re_compile(ReCompiled **ppRe, const char *zIn, int noCase){
** unicode characters beyond plane 0 - those are very rare and this is
** just an optimization. */
if( pRe->aOp[0]==RE_OP_ANYSTAR && !noCase ){
- for(j=0, i=1; j<sizeof(pRe->zInit)-2 && pRe->aOp[i]==RE_OP_MATCH; i++){
+ for(j=0, i=1; j<(int)sizeof(pRe->zInit)-2 && pRe->aOp[i]==RE_OP_MATCH; i++){
unsigned x = pRe->aArg[i];
if( x<=127 ){
pRe->zInit[j++] = (unsigned char)x;
@@ -718,6 +718,7 @@ static void re_sql_func(
const char *zErr; /* Compile error message */
int setAux = 0; /* True to invoke sqlite3_set_auxdata() */
+ (void)argc; /* Unused */
pRe = sqlite3_get_auxdata(context, 0);
if( pRe==0 ){
zPattern = (const char*)sqlite3_value_text(argv[0]);
@@ -757,6 +758,7 @@ int sqlite3_regexp_init(
){
int rc = SQLITE_OK;
SQLITE_EXTENSION_INIT2(pApi);
+ (void)pzErrMsg; /* Unused */
rc = sqlite3_create_function(db, "regexp", 2, SQLITE_UTF8|SQLITE_INNOCUOUS,
0, re_sql_func, 0, 0);
if( rc==SQLITE_OK ){