aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2009-10-13 13:08:19 +0000
committerdrh <drh@noemail.net>2009-10-13 13:08:19 +0000
commitd3ceeb50f3b2f840f92bfdb3b74cb907b09e4459 (patch)
tree56a8ff58d911d03d5a891e7a951cdfada6dedfed /src
parent4591c7bab5ea00db74e6205c1325f4fc5f947b37 (diff)
downloadsqlite-d3ceeb50f3b2f840f92bfdb3b74cb907b09e4459.tar.gz
sqlite-d3ceeb50f3b2f840f92bfdb3b74cb907b09e4459.zip
Suppress some harmless compiler warnings.
FossilOrigin-Name: 5d381daa6e5248ec171aa682e2dad058d4012f24
Diffstat (limited to 'src')
-rw-r--r--src/alter.c1
-rw-r--r--src/fkey.c7
2 files changed, 5 insertions, 3 deletions
diff --git a/src/alter.c b/src/alter.c
index 1ba1ea312..1056420c1 100644
--- a/src/alter.c
+++ b/src/alter.c
@@ -117,6 +117,7 @@ static void renameParentFunc(
int n; /* Length of token z */
int token; /* Type of token */
+ UNUSED_PARAMETER(NotUsed);
for(z=zInput; *z; z=z+n){
n = sqlite3GetToken(z, &token);
if( token==TK_REFERENCES ){
diff --git a/src/fkey.c b/src/fkey.c
index 8af7ea924..df0a5b466 100644
--- a/src/fkey.c
+++ b/src/fkey.c
@@ -498,8 +498,9 @@ static void fkScanChildren(
/* Set the collation sequence and affinity of the LHS of each TK_EQ
** expression to the parent key column defaults. */
if( pIdx ){
- int iCol = pIdx->aiColumn[i];
- Column *pCol = &pIdx->pTable->aCol[iCol];
+ Column *pCol;
+ iCol = pIdx->aiColumn[i];
+ pCol = &pIdx->pTable->aCol[iCol];
pLeft->iTable = regData+iCol+1;
pLeft->affinity = pCol->affinity;
pLeft->pColl = sqlite3LocateCollSeq(pParse, pCol->zColl);
@@ -957,7 +958,7 @@ static Trigger *fkActionTrigger(
int nFrom; /* Length in bytes of zFrom */
Index *pIdx = 0; /* Parent key index for this FK */
int *aiCol = 0; /* child table cols -> parent key cols */
- TriggerStep *pStep; /* First (only) step of trigger program */
+ TriggerStep *pStep = 0; /* First (only) step of trigger program */
Expr *pWhere = 0; /* WHERE clause of trigger step */
ExprList *pList = 0; /* Changes list if ON UPDATE CASCADE */
Select *pSelect = 0; /* If RESTRICT, "SELECT RAISE(...)" */