aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/spgist/spginsert.c
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2023-08-23 09:41:22 +0200
committerDaniel Gustafsson <dgustafsson@postgresql.org>2023-08-23 09:41:22 +0200
commitd0e408313536d4d4a0fb4516f2596adbe06a0e60 (patch)
tree43aa62f44b85643d1ee70fd16fc716a93ad1f087 /src/backend/access/spgist/spginsert.c
parented057fb68720dfeffc03e2b156c274f8ed10583a (diff)
downloadpostgresql-d0e408313536d4d4a0fb4516f2596adbe06a0e60.tar.gz
postgresql-d0e408313536d4d4a0fb4516f2596adbe06a0e60.zip
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
Diffstat (limited to 'src/backend/access/spgist/spginsert.c')
0 files changed, 0 insertions, 0 deletions