pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Silence compiler warnings from some older compilers.
Date: Wed, 01 Jun 2022 21:22:03 +0000
Message-ID: <E1nwVn1-002FN6-E2@gemulon.postgresql.org> (raw)

Silence compiler warnings from some older compilers.

Since a117cebd6, some older gcc versions issue "variable may be used
uninitialized in this function" complaints for brin_summarize_range.
Silence that using the same coding pattern as in bt_index_check_internal;
arguably, a117cebd6 had too narrow a view of which compilers might give
trouble.

Nathan Bossart and Tom Lane.  Back-patch as the previous commit was.

Discussion: https://postgr.es/m/20220601163537.GA2331988@nathanxps13

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/60ca2e8418a14b531f684723d08639997afc0d6f

Modified Files
--------------
contrib/amcheck/verify_nbtree.c | 2 +-
src/backend/access/brin/brin.c  | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1nwVn1-002FN6-E2@gemulon.postgresql.org>
Permalink:  ../E1nwVn1-002FN6-E2@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nwVn1-002FN6-E2@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Silence compiler warnings from some older compilers.
  In-Reply-To: <E1nwVn1-002FN6-E2@gemulon.postgresql.org>
  References: <E1nwVn1-002FN6-E2@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