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

Commit4dc0c93

Browse files
committed
Suppress new "may be used uninitialized" warning.
Buildfarm member mamba fails to deduce that the function never uses thisvariable without initializing it. Back-patch to v12, like commitb412f40.
1 parent6b01cac commit4dc0c93

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎src/backend/catalog/index.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2789,8 +2789,8 @@ index_update_stats(Relation rel,
27892789
doublereltuples)
27902790
{
27912791
boolupdate_stats;
2792-
BlockNumberrelpages;
2793-
BlockNumberrelallvisible;
2792+
BlockNumberrelpages=0;/* keep compiler quiet */
2793+
BlockNumberrelallvisible=0;
27942794
Oidrelid=RelationGetRelid(rel);
27952795
Relationpg_class;
27962796
ScanKeyDatakey[1];
@@ -2827,8 +2827,6 @@ index_update_stats(Relation rel,
28272827

28282828
if (rel->rd_rel->relkind!=RELKIND_INDEX)
28292829
visibilitymap_count(rel,&relallvisible,NULL);
2830-
else/* don't bother for indexes */
2831-
relallvisible=0;
28322830
}
28332831

28342832
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp