Silence complaint about dead assignment
The preferred place for "placate compiler" assignments is after elog(ERROR), not before it. Otherwise, scan-build complains about a dead assignment.
This commit is contained in:
parent
6ad3611e1e
commit
07e524d3e9
@ -13251,8 +13251,8 @@ RangeVarCallbackForAlterRelation(const RangeVar *rv, Oid relid, Oid oldrelid,
|
|||||||
reltype = ((AlterTableStmt *) stmt)->relkind;
|
reltype = ((AlterTableStmt *) stmt)->relkind;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
reltype = OBJECT_TABLE; /* placate compiler */
|
|
||||||
elog(ERROR, "unrecognized node type: %d", (int) nodeTag(stmt));
|
elog(ERROR, "unrecognized node type: %d", (int) nodeTag(stmt));
|
||||||
|
reltype = OBJECT_TABLE; /* placate compiler */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user