pgsql: pg_upgrade: Avoid shadowing global var in function

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема pgsql: pg_upgrade: Avoid shadowing global var in function
Дата
Msg-id E1qYibl-000Rku-4G@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
pg_upgrade: Avoid shadowing global var in function

The new_cluster parameter in check_for_new_tablespace_dir was
shadowing the globally defined new_cluster variable, causing
compiler warnings when running with -Wshadow. The function is
only applicable to the new cluster, so remove the parameter
rather than rename to match check_new_cluster_is_empty which
also only applies to the new cluster.

Author: Peter Smith <peter.b.smith@fujitsu.com>
Discussion: https://postgr.es/m/CAHut+PvS_PHLntWy1yTgXv0O1tWm4iVcKBQFzpoQRDsm2Ce_Fg@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/bin/pg_upgrade/check.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: doc: Improve ICU external link
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: pgsql: Fix wording in comment