pgsql: Fix -Wcast-qual warning

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix -Wcast-qual warning
Date: 2026-03-26 14:06:03
Message-ID: E1w5lLW-001YA6-1T@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix -Wcast-qual warning

This dials back a couple of the qualifiers added by commit
7724cb9935a. Specifically, in match_boolean_partition_clause() the
call to negate_clause() casts away the const, so we shouldn't make the
input argument const.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/119e791e9c7d7d122f7a9554514455c38115964a

Modified Files
--------------
src/backend/partitioning/partprune.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2026-03-26 14:38:02 pgsql: Respect disabled_nodes in fix_alternative_subplan.
Previous Message Fujii Masao 2026-03-26 11:55:23 pgsql: Avoid sending duplicate WAL locations in standby status replies