Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 825c72c

Browse files
committed
Suppress new "may be used uninitialized" warning.
Buildfarm member mamba fails to deduce that the function never uses this variable without initializing it. Back-patch to v12, like commit b412f40.
1 parent 0bada39 commit 825c72c

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
@@ -2807,8 +2807,8 @@ index_update_stats(Relation rel,
28072807
double reltuples)
28082808
{
28092809
bool update_stats;
2810-
BlockNumber relpages;
2811-
BlockNumber relallvisible;
2810+
BlockNumber relpages = 0; /* keep compiler quiet */
2811+
BlockNumber relallvisible = 0;
28122812
Oid relid = RelationGetRelid(rel);
28132813
Relation pg_class;
28142814
ScanKeyData key[1];
@@ -2849,8 +2849,6 @@ index_update_stats(Relation rel,
28492849

28502850
if (rel->rd_rel->relkind != RELKIND_INDEX)
28512851
visibilitymap_count(rel, &relallvisible, NULL);
2852-
else /* don't bother for indexes */
2853-
relallvisible = 0;
28542852
}
28552853

28562854
/*

0 commit comments

Comments
 (0)