1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-28 05:21:27 +03:00

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
b412f402d1e020c5dac94f3bf4a005db69519b99.
This commit is contained in:
Noah Misch 2024-11-02 19:42:52 -07:00
parent 0bcb9d0794
commit 54bc22fbf6

View File

@ -2783,8 +2783,8 @@ index_update_stats(Relation rel,
double reltuples) double reltuples)
{ {
bool update_stats; bool update_stats;
BlockNumber relpages; BlockNumber relpages = 0; /* keep compiler quiet */
BlockNumber relallvisible; BlockNumber relallvisible = 0;
Oid relid = RelationGetRelid(rel); Oid relid = RelationGetRelid(rel);
Relation pg_class; Relation pg_class;
ScanKeyData key[1]; ScanKeyData key[1];
@ -2825,8 +2825,6 @@ index_update_stats(Relation rel,
if (rel->rd_rel->relkind != RELKIND_INDEX) if (rel->rd_rel->relkind != RELKIND_INDEX)
visibilitymap_count(rel, &relallvisible, NULL); visibilitymap_count(rel, &relallvisible, NULL);
else /* don't bother for indexes */
relallvisible = 0;
} }
/* /*