pgsql: Small refactor to get rid of -Wshadow=compatible-local warning

Поиск
Список
Период
Сортировка
От David Rowley
Тема pgsql: Small refactor to get rid of -Wshadow=compatible-local warning
Дата
Msg-id E1oRE8i-0019oS-Pj@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Small refactor to get rid of -Wshadow=compatible-local warning

Further reduce -Wshadow=compatible-local warnings by 1 by refactoring the
code in gistRelocateBuildBuffersOnSplit() to make use of
foreach_current_index() instead of manually incrementing a variable on
each loop.

Author: David Rowley
Discussion: https://postgr.es/m/CAApHDvpGZX-X=Bn4moyXgfFa0CdSUwoa04d3isit3=1qo8F8Bw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d389487525bc1d543f27543ed2ff824d3a30f508

Modified Files
--------------
src/backend/access/gist/gistbuildbuffers.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: David Rowley
Дата:
Сообщение: pgsql: More -Wshadow=compatible-local warning fixes
Следующее
От: Jeff Davis
Дата:
Сообщение: pgsql: Fix doc oversight for custom WAL resource managers.