Content-Length: 259710 | pFad | http://github.com/postgrespro/postgres/commit/07e524d3e955a79b94918d076642b3ac8e84b65f

C4 Silence complaint about dead assignment · postgrespro/postgres@07e524d · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/07e524d3e955a79b94918d076642b3ac8e84b65f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy