mirror of
https://github.com/postgres/postgres.git
synced 2026-05-28 04:35:45 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -13251,8 +13251,8 @@ RangeVarCallbackForAlterRelation(const RangeVar *rv, Oid relid, Oid oldrelid,
|
|||
reltype = ((AlterTableStmt *) stmt)->relkind;
|
||||
else
|
||||
{
|
||||
reltype = OBJECT_TABLE; /* placate compiler */
|
||||
elog(ERROR, "unrecognized node type: %d", (int) nodeTag(stmt));
|
||||
reltype = OBJECT_TABLE; /* placate compiler */
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue