1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-10 01:02:56 +03:00

New #ifdefs to omit code that is unused except under STAT4.

FossilOrigin-Name: 09a9b30ba7828a487a33a3ebf8028dfaa147dff67d2724584123b90a88d9814b
This commit is contained in:
drh
2023-03-29 14:42:11 +00:00
parent df542e0500
commit a9fd5f224c
4 changed files with 14 additions and 8 deletions

View File

@@ -6646,6 +6646,7 @@ void sqlite3TouchRegister(Parse *pParse, int iReg){
if( pParse->nMem<iReg ) pParse->nMem = iReg;
}
#if defined(SQLITE_ENABLE_STAT4) || defined(SQLITE_DEBUG)
/*
** Return the latest reusable register in the set of all registers.
** The value returned is no less than iMin. If any register iMin or
@@ -6666,6 +6667,7 @@ int sqlite3FirstAvailableRegister(Parse *pParse, int iMin){
pParse->nRangeReg = 0;
return iMin;
}
#endif /* SQLITE_ENABLE_STAT4 || SQLITE_DEBUG */
/*
** Validate that no temporary register falls within the range of