fix more casting away of qualifiers

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: fix more casting away of qualifiers
Date: 2026-08-18 09:04:25
Message-ID: 459217ca-3840-4452-8cd1-8f9b47e8d479@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

The attached patches fix more cases where qualifiers (const, volatile)
are cast away either accidentally, or unnecessarily, or where it can be
worked around easily.

I split these into tiny bits to simplify review and to show that they
are all independent. But they could perhaps be committed all together.
(See also similar commit 3f988629805.)

I have a local WIP branch that fixes all remaining -Wcast-qual warnings.
The attached patches are the "easy" half of that. I plan to propose
addressing the other half separately later.

Attachment Content-Type Size
0001-Fix-some-Wcast-qual-warnings-fe_utils-print.c.patch text/plain 1.4 KB
0002-Fix-some-Wcast-qual-warnings-rangetypes.patch text/plain 2.0 KB
0003-Fix-some-Wcast-qual-warnings-varlena.patch text/plain 3.4 KB
0004-Fix-some-Wcast-qual-warnings-contrib-xml2.patch text/plain 1.9 KB
0005-Fix-some-Wcast-qual-warnings-postgres_fdw.patch text/plain 1.8 KB
0006-Fix-some-Wcast-qual-warnings-btree_gist.patch text/plain 2.2 KB
0007-Fix-some-Wcast-qual-warnings-guc_funcs.patch text/plain 1.4 KB
0008-Fix-some-Wcast-qual-warnings-bufpage.patch text/plain 994 bytes
0009-Fix-some-Wcast-qual-warnings-test_custom_stats.patch text/plain 1.0 KB
0010-Fix-some-Wcast-qual-warnings-readline.patch text/plain 1.0 KB
0011-Change-InputFunctionCall-to-take-a-const-char-str.patch text/plain 9.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zsolt Parragi 2026-08-18 09:11:53 Re: datachecksums: handle invalid and dropped databases during enable
Previous Message Bohyun Lee 2026-08-18 09:02:34 Re: [PATCH] pg_upgrade: add --initdb option to create the new cluster automatically