mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-14 00:22:38 +03:00
Remove an unused variable from sqlite3Insert() and fix harmless
compiler warnings associated with -DSQLITE_MUTATION_TEST. FossilOrigin-Name: 7be760e907274131bcd4acfaff9e72c9c59a05e7d411db3d9afe690fe0d64b4b
This commit is contained in:
@@ -484,7 +484,6 @@ void sqlite3Insert(
|
||||
){
|
||||
sqlite3 *db; /* The main database structure */
|
||||
Table *pTab; /* The table to insert into. aka TABLE */
|
||||
char *zTab; /* Name of the table into which we are inserting */
|
||||
int i, j; /* Loop counters */
|
||||
Vdbe *v; /* Generate code into this virtual machine */
|
||||
Index *pIdx; /* For looping over indices of the table */
|
||||
@@ -540,8 +539,6 @@ void sqlite3Insert(
|
||||
/* Locate the table into which we will be inserting new information.
|
||||
*/
|
||||
assert( pTabList->nSrc==1 );
|
||||
zTab = pTabList->a[0].zName;
|
||||
if( NEVER(zTab==0) ) goto insert_cleanup;
|
||||
pTab = sqlite3SrcListLookup(pParse, pTabList);
|
||||
if( pTab==0 ){
|
||||
goto insert_cleanup;
|
||||
|
||||
@@ -3711,7 +3711,7 @@ int sqlite3_test_control(int op, ...){
|
||||
** This action provides a run-time test to see how the ALWAYS and
|
||||
** NEVER macros were defined at compile-time.
|
||||
**
|
||||
** The return value is ALWAYS(X).
|
||||
** The return value is ALWAYS(X) if X is true, or 0 if X is false.
|
||||
**
|
||||
** The recommended test is X==2. If the return value is 2, that means
|
||||
** ALWAYS() and NEVER() are both no-op pass-through macros, which is the
|
||||
@@ -3734,7 +3734,7 @@ int sqlite3_test_control(int op, ...){
|
||||
*/
|
||||
case SQLITE_TESTCTRL_ALWAYS: {
|
||||
int x = va_arg(ap,int);
|
||||
rc = ALWAYS(x);
|
||||
rc = x ? ALWAYS(x) : 0;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -412,11 +412,10 @@ static int sqliteProcessJoin(Parse *pParse, Select *p){
|
||||
pLeft = &pSrc->a[0];
|
||||
pRight = &pLeft[1];
|
||||
for(i=0; i<pSrc->nSrc-1; i++, pRight++, pLeft++){
|
||||
Table *pLeftTab = pLeft->pTab;
|
||||
Table *pRightTab = pRight->pTab;
|
||||
int isOuter;
|
||||
|
||||
if( NEVER(pLeftTab==0 || pRightTab==0) ) continue;
|
||||
if( NEVER(pLeft->pTab==0 || pRightTab==0) ) continue;
|
||||
isOuter = (pRight->fg.jointype & JT_OUTER)!=0;
|
||||
|
||||
/* When the NATURAL keyword is present, add WHERE clause terms for
|
||||
|
||||
Reference in New Issue
Block a user