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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy