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: Remove useless casts to (void *)
Date: Fri, 21 Nov 2025 15:57:27 +0000
Message-ID: <E1vMTVn-000esw-0K@gemulon.postgresql.org> (raw)

Remove useless casts to (void *)

Their presence causes (small) risks of hiding actual type mismatches
or silently discarding qualifiers.  Some have been missed in
7f798aca1d5 and some are new ones along the same lines.

Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/aR8Yv%2BuATLKbJCgI%40ip-10-97-1-34.eu-west-3.compute.inte...

Branch
------
master

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

Modified Files
--------------
src/backend/catalog/pg_publication.c       | 2 +-
src/backend/commands/copyfromparse.c       | 2 +-
src/backend/commands/extension.c           | 2 +-
src/backend/storage/lmgr/lock.c            | 2 +-
src/backend/tsearch/wparser.c              | 2 +-
src/backend/utils/cache/inval.c            | 2 +-
src/backend/utils/misc/injection_point.c   | 2 +-
src/backend/utils/mmgr/bump.c              | 2 +-
src/backend/utils/sort/tuplesortvariants.c | 2 +-
9 files changed, 9 insertions(+), 9 deletions(-)



view thread (2+ messages)

Message-ID: <E1vMTVn-000esw-0K@gemulon.postgresql.org>
Permalink:  ../E1vMTVn-000esw-0K@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vMTVn-000esw-0K@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: Remove useless casts to (void *)
  In-Reply-To: <E1vMTVn-000esw-0K@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