pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Rowley <drowley@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Further -Wshadow=compatible-local warning fixes
Date: Wed, 24 Aug 2022 10:05:10 +0000
Message-ID: <E1oQnG0-000yYe-UH@gemulon.postgresql.org> (raw)

Further -Wshadow=compatible-local warning fixes

These should have been included in 421892a19 as 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 as f01592f91.

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

Branch
------
master

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

Modified Files
--------------
src/backend/access/spgist/spgdoinsert.c | 3 ++-
src/backend/commands/trigger.c          | 2 +-
src/backend/executor/nodeHash.c         | 3 +--
src/backend/optimizer/plan/planner.c    | 2 +-
src/backend/tsearch/ts_typanalyze.c     | 3 ++-
src/backend/utils/adt/levenshtein.c     | 6 +++---
src/backend/utils/adt/rangetypes_gist.c | 5 +++--
src/backend/utils/adt/ruleutils.c       | 3 ++-
8 files changed, 15 insertions(+), 12 deletions(-)



Message-ID: <E1oQnG0-000yYe-UH@gemulon.postgresql.org>
Permalink:  ../E1oQnG0-000yYe-UH@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oQnG0-000yYe-UH@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: drowley@postgresql.org
  Subject: Re: pgsql: Further -Wshadow=compatible-local warning fixes
  In-Reply-To: <E1oQnG0-000yYe-UH@gemulon.postgresql.org>
  References: <E1oQnG0-000yYe-UH@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox