pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Silence compiler warnings on clang 21
Date: Fri, 12 Sep 2025 05:35:36 +0000
Message-ID: <E1uwwRb-000IHI-2I@gemulon.postgresql.org> (raw)

Silence compiler warnings on clang 21

Clang 21 shows some new compiler warnings, for example:

warning: variable 'dstsize' is uninitialized when passed as a const pointer argument here [-Wuninitialized-const-pointer]

The fix is to initialize the variables when they are defined.  This is
similar to, for example, the existing situation in gistKeyIsEQ().

Discussion: https://www.postgresql.org/message-id/flat/6604ad6e-5934-43ac-8590-15113d6ae4b1%40eisentraut.org

Branch
------
master

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

Modified Files
--------------
src/backend/access/common/toast_internals.c | 2 +-
src/backend/access/gist/gistutil.c          | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1uwwRb-000IHI-2I@gemulon.postgresql.org>
Permalink:  ../E1uwwRb-000IHI-2I@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1uwwRb-000IHI-2I@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: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Silence compiler warnings on clang 21
  In-Reply-To: <E1uwwRb-000IHI-2I@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