diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2018-01-29 20:42:15 -0500 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2018-01-29 20:43:43 -0500 |
commit | 07e524d3e955a79b94918d076642b3ac8e84b65f (patch) | |
tree | d0d1f13cbe1513c3be2c3a419cec8303b49b2dec /src/backend/commands/tablecmds.c | |
parent | 6ad3611e1ea6fef6ac0c746d1565b3f6a856b593 (diff) | |
download | postgresql-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.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 */ } /* |