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.
REL_15_STABLE
Noah Misch 10 months ago
parent 6d5b4031b9
commit d14e94ac45
  1. 6
      src/backend/catalog/index.c

@ -2802,8 +2802,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];
@ -2840,8 +2840,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…
Cancel
Save