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: Fix some -Wcast-qual warnings
Date: Tue, 25 Aug 2026 08:25:27 +0000
Message-ID: <E1wymTG-000000021u5-3JcU@gemulon.postgresql.org> (raw)

Fix some -Wcast-qual warnings

Small rearrangements to avoid having to cast away qualifiers.  In some
cases, the whole cast was unnecessary.

Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>
Discussion: https://www.postgresql.org/message-id/flat/459217ca-3840-4452-8cd1-8f9b47e8d479%40eisentraut.org

Branch
------
master

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

Modified Files
--------------
contrib/btree_gist/btree_bit.c                     |  4 ++--
contrib/btree_gist/btree_utils_var.c               |  4 ++--
contrib/btree_gist/btree_utils_var.h               |  2 +-
contrib/postgres_fdw/connection.c                  | 11 ++++++----
contrib/xml2/xslt_proc.c                           | 15 +++++++-------
src/backend/utils/adt/multirangetypes.c            |  6 +++---
src/backend/utils/adt/rangetypes.c                 |  2 +-
src/backend/utils/adt/varlena.c                    | 24 +++++++++++-----------
src/include/storage/bufpage.h                      |  2 +-
.../test_custom_stats/test_custom_var_stats.c      |  2 +-
10 files changed, 38 insertions(+), 34 deletions(-)



view thread (2+ messages)

Message-ID: <E1wymTG-000000021u5-3JcU@gemulon.postgresql.org>
Permalink:  ../E1wymTG-000000021u5-3JcU@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wymTG-000000021u5-3JcU@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: Fix some -Wcast-qual warnings
  In-Reply-To: <E1wymTG-000000021u5-3JcU@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