mirror of
https://github.com/postgres/postgres.git
synced 2026-03-14 14:42:30 -04: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
b412f402d1.
This commit is contained in:
parent
6b01cac0be
commit
4dc0c933f3
1 changed files with 2 additions and 4 deletions
|
|
@ -2789,8 +2789,8 @@ index_update_stats(Relation rel,
|
|||
double reltuples)
|
||||
{
|
||||
bool update_stats;
|
||||
BlockNumber relpages;
|
||||
BlockNumber relallvisible;
|
||||
BlockNumber relpages = 0; /* keep compiler quiet */
|
||||
BlockNumber relallvisible = 0;
|
||||
Oid relid = RelationGetRelid(rel);
|
||||
Relation pg_class;
|
||||
ScanKeyData key[1];
|
||||
|
|
@ -2827,8 +2827,6 @@ index_update_stats(Relation rel,
|
|||
|
||||
if (rel->rd_rel->relkind != RELKIND_INDEX)
|
||||
visibilitymap_count(rel, &relallvisible, NULL);
|
||||
else /* don't bother for indexes */
|
||||
relallvisible = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue