pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Initialize variable to placate compiler.
Date: Wed, 27 Dec 2023 13:49:52 +0000
Message-ID: <E1rIUIC-00CA7h-3j@gemulon.postgresql.org> (raw)

Initialize variable to placate compiler.

I don't think there's a real problem here, because if we reach
the loop over 'tles' then we will either find at least one
TimeLineHistoryEntry such that oldest_segno != 0, in which case
unsummarized_lsn will be initialized, or else unsummarized_tli
will remain 0 and an error will occur before unsummarized_lsn
is used for anything. But some compilers are complainining, as
reported on list by Nathan Bossart and off-list by Andrew Dunstan.

Discussion: http://postgr.es/m/20231223215147.GA69623@nathanxps13

Branch
------
master

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

Modified Files
--------------
src/backend/postmaster/walsummarizer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1rIUIC-00CA7h-3j@gemulon.postgresql.org>
Permalink:  ../E1rIUIC-00CA7h-3j@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rIUIC-00CA7h-3j@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Initialize variable to placate compiler.
  In-Reply-To: <E1rIUIC-00CA7h-3j@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