Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 07e524d

Browse files
committed
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.
1 parent 6ad3611 commit 07e524d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/commands/tablecmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13251,8 +13251,8 @@ RangeVarCallbackForAlterRelation(const RangeVar *rv, Oid relid, Oid oldrelid,
1325113251
reltype = ((AlterTableStmt *) stmt)->relkind;
1325213252
else
1325313253
{
13254-
reltype = OBJECT_TABLE; /* placate compiler */
1325513254
elog(ERROR, "unrecognized node type: %d", (int) nodeTag(stmt));
13255+
reltype = OBJECT_TABLE; /* placate compiler */
1325613256
}
1325713257

1325813258
/*

0 commit comments

Comments
 (0)