Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit07e524d

Browse files
committed
Silence complaint about dead assignment
The preferred place for "placate compiler" assignments is afterelog(ERROR), not before it. Otherwise, scan-build complains about adead assignment.
1 parent6ad3611 commit07e524d

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)

[8]ページ先頭

©2009-2025 Movatter.jp