pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Initialize variable to placate compiler. 3+ messages / 2 participants [nested] [flat]
* pgsql: Initialize variable to placate compiler. @ 2021-10-25 20:31 Robert Haas <rhaas@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Robert Haas @ 2021-10-25 20:31 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Initialize variable to placate compiler. Per Nathan Bossart. Discussion: http://postgr.es/m/FECEE7FC-CB74-45A9-BB24-89FEE52A9585@amazon.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/a030a0c5ccb113ccd09d0f0b82f1edb5e49ed607 Modified Files -------------- src/backend/access/transam/xlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Initialize variable to placate compiler. @ 2023-12-27 13:49 Robert Haas <rhaas@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Robert Haas @ 2023-12-27 13:49 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Initialize variable to placate compiler. @ 2026-03-13 16:32 Nathan Bossart <nathan@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Nathan Bossart @ 2026-03-13 16:32 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Initialize variable to placate compiler. Since commit 5883ff30b0, some compilers have been warning that the rtekind variable in unique_nonjoin_rtekind() may be used uninitialized. There doesn't appear to be any actual risk, so let's just initialize it to something to silence the compiler warnings. Author: Sami Imseih <samimseih@gmail.com> Discussion: https://postgr.es/m/CAA5RZ0sieVNfniCKMDdDjuXGd1OuzMQfTS5%3D9vX3sa-iiujKUA%40mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/be43c48c22cc8a4f55258e5230d23909e13c5efd Modified Files -------------- contrib/pg_plan_advice/pgpa_scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2026-03-13 16:32 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-10-25 20:31 pgsql: Initialize variable to placate compiler. Robert Haas <rhaas@postgresql.org> 2023-12-27 13:49 pgsql: Initialize variable to placate compiler. Robert Haas <rhaas@postgresql.org> 2026-03-13 16:32 pgsql: Initialize variable to placate compiler. Nathan Bossart <nathan@postgresql.org>
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