From: drh Date: Mon, 4 May 2020 19:52:00 +0000 (+0000) Subject: Fix harmless compiler warnings. X-Git-Tag: version-3.32.0~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d42fb788ab2be01b891dba61b380c819117e12b;p=thirdparty%2Fsqlite.git Fix harmless compiler warnings. FossilOrigin-Name: 8eee591d3cb9fadfd5cac5543bd66ef9cb371a72d3ad3241fb3bfd67fb216eda --- diff --git a/ext/misc/uint.c b/ext/misc/uint.c index 12982c2a20..286314fefa 100644 --- a/ext/misc/uint.c +++ b/ext/misc/uint.c @@ -45,6 +45,7 @@ static int uintCollFunc( const unsigned char *zA = (const unsigned char*)pKey1; const unsigned char *zB = (const unsigned char*)pKey2; int i=0, j=0, x; + (void)notUsed; while( inLimit && p->nRow>p->nLimit*(p->nSkipAhead+1) ){ + if( p->nLimit && p->nRow>(tRowcnt)p->nLimit*(p->nSkipAhead+1) ){ p->nSkipAhead++; sqlite3_result_int(context, p->current.anDLt[0]>0); }