From: | Robert Haas <rhaas(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Initialize variable to placate compiler. |
Date: | 2023-12-27 13:49:52 |
Message-ID: | E1rIUIC-00CA7h-3j@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2023-12-27 16:03:01 | pgsql: Fix incorrect data type choices in some read and write calls. |
Previous Message | Alexander Korotkov | 2023-12-27 12:35:22 | pgsql: Improvements and fixes for e0b1ee17dc |