mirror of
https://github.com/postgres/postgres.git
synced 2025-10-24 01:29:19 +03:00
Further -Wshadow=compatible-local warning fixes
These should have been included in421892a19as these shadowed variable warnings can also be fixed by adjusting the scope of the shadowed variable to put the declaration for it in an inner scope. This is part of the same effort asf01592f91. By my count, this takes the warning count from 114 down to 106. Author: David Rowley and Justin Pryzby Discussion: https://postgr.es/m/CAApHDvrwLGBP%2BYw9vriayyf%3DXR4uPWP5jr6cQhP9au_kaDUhbA%40mail.gmail.com
This commit is contained in:
@@ -161,7 +161,6 @@ compute_tsvector_stats(VacAttrStats *stats,
|
||||
int vector_no,
|
||||
lexeme_no;
|
||||
LexemeHashKey hash_key;
|
||||
TrackItem *item;
|
||||
|
||||
/*
|
||||
* We want statistics_target * 10 lexemes in the MCELEM array. This
|
||||
@@ -240,6 +239,7 @@ compute_tsvector_stats(VacAttrStats *stats,
|
||||
curentryptr = ARRPTR(vector);
|
||||
for (j = 0; j < vector->size; j++)
|
||||
{
|
||||
TrackItem *item;
|
||||
bool found;
|
||||
|
||||
/*
|
||||
@@ -296,6 +296,7 @@ compute_tsvector_stats(VacAttrStats *stats,
|
||||
int nonnull_cnt = samplerows - null_cnt;
|
||||
int i;
|
||||
TrackItem **sort_table;
|
||||
TrackItem *item;
|
||||
int track_len;
|
||||
int cutoff_freq;
|
||||
int minfreq,
|
||||
|
||||
Reference in New Issue
Block a user