aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/tablecmds.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2018-01-29 20:42:15 -0500
committerPeter Eisentraut <peter_e@gmx.net>2018-01-29 20:43:43 -0500
commit07e524d3e955a79b94918d076642b3ac8e84b65f (patch)
treed0d1f13cbe1513c3be2c3a419cec8303b49b2dec /src/backend/commands/tablecmds.c
parent6ad3611e1ea6fef6ac0c746d1565b3f6a856b593 (diff)
downloadpostgresql-07e524d3e955a79b94918d076642b3ac8e84b65f.tar.gz
postgresql-07e524d3e955a79b94918d076642b3ac8e84b65f.zip
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.
Diffstat (limited to 'src/backend/commands/tablecmds.c')
-rw-r--r--src/backend/commands/tablecmds.c2
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 */
}
/*