pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove dead assignment to local variable.
Date: Mon, 12 Jul 2021 08:16:20 +0000
Message-ID: <E1m2r6y-0007BB-5X@gemulon.postgresql.org> (raw)

Remove dead assignment to local variable.

This should have been removed in commit 7e30c186da, which split the loop
into two. Only the first loop uses the 'from' variable; updating it in
the second loop is bogus. It was never read after the first loop, so this
was harmless and surely optimized away by the compiler, but let's be tidy.

Backpatch to all supported versions.

Author: Ranier Vilela
Discussion: https://www.postgresql.org/message-id/CAEudQAoWq%2BAL3BnELHu7gms2GN07k-np6yLbukGaxJ1vY-zeiQ%40mail.g...

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/96c0890d4bb1ac82cc0316000214f50767019b0f

Modified Files
--------------
src/backend/access/nbtree/nbtxlog.c | 1 -
1 file changed, 1 deletion(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1m2r6y-0007BB-5X@gemulon.postgresql.org>
Permalink:  ../E1m2r6y-0007BB-5X@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1m2r6y-0007BB-5X@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: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Remove dead assignment to local variable.
  In-Reply-To: <E1m2r6y-0007BB-5X@gemulon.postgresql.org>
  References: <E1m2r6y-0007BB-5X@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