diff options
| author | Peter Eisentraut | 2018-01-30 01:42:15 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2018-01-30 01:43:43 +0000 |
| commit | 07e524d3e955a79b94918d076642b3ac8e84b65f (patch) | |
| tree | d0d1f13cbe1513c3be2c3a419cec8303b49b2dec | |
| parent | 6ad3611e1ea6fef6ac0c746d1565b3f6a856b593 (diff) | |
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.
| -rw-r--r-- | src/backend/commands/tablecmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index ea03fd2ecf3..37c7d668819 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -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 */ } /* |
