pgsql: Fix some -Wcast-qual warnings

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix some -Wcast-qual warnings
Date: 2026-02-27 21:04:48
Message-ID: E1vw50y-001SHL-0c@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix some -Wcast-qual warnings

This fixes some warnings from -Wcast-qual that are easy to fix,
without using unconstify or the like.

Reviewed-by: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/990c9117-b013-4026-aaf5-261fe2832c3d%40eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3f9886298052802258261e1bdcd3f1dd0e8399b9

Modified Files
--------------
src/backend/access/gin/ginbulk.c | 2 +-
src/backend/postmaster/launch_backend.c | 12 ++++++------
src/backend/utils/adt/xml.c | 5 +++--
src/backend/utils/error/elog.c | 7 +++++--
src/common/jsonapi.c | 6 +++---
src/fe_utils/astreamer_lz4.c | 12 ++++++------
src/include/access/gin_private.h | 2 +-
src/include/port/pg_lfind.h | 4 ++--
src/include/postmaster/postmaster.h | 2 +-
src/interfaces/ecpg/preproc/parser.c | 17 +++++++++++------
10 files changed, 39 insertions(+), 30 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message John Naylor 2026-02-28 09:30:19 pgsql: Refactor detection of x86 ZMM registers
Previous Message Tom Lane 2026-02-27 20:20:27 pgsql: Doc: improve user docs and code comments about EXISTS(SELECT * .