mirror of
https://github.com/postgres/postgres.git
synced 2025-06-17 17:02:08 +03: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:
@ -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 */
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user