Re: Mark function arguments of type "T *" as "const T *" where possible - Mailing list pgsql-hackers

From Bertrand Drouvot
Subject Re: Mark function arguments of type "T *" as "const T *" where possible
Date
Msg-id aTkVrAWjbNsy6Hbi@ip-10-97-1-34.eu-west-3.compute.internal
Whole thread Raw
In response to Mark function arguments of type "T *" as "const T *" where possible  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
Responses Re: Mark function arguments of type "T *" as "const T *" where possible
List pgsql-hackers
Hi,

On Tue, Dec 09, 2025 at 04:20:57PM +0000, Bertrand Drouvot wrote:
> To avoid any risks:
> 
> - cases that produce -Wdiscarded-qualifiers warnings have been discarded as
> they would need more investigation.
> 
> - double pointers are excluded to keep the changes straightforward.
> 
> - cases that produce new -Wcast-qual warnings have been discarded.

Despite the above precautions, I just realized there are still "unwanted" const
additions (more on that later). I'll fix those and submit a new patch version.

Regards,

-- 
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com



pgsql-hackers by date:

Previous
From: Steve Chavez
Date:
Subject: Re: [PATCH] Add hint for misspelled relations
Next
From: Nazir Bilal Yavuz
Date:
Subject: Re: [PATCH] test_aio: Skip io_uring tests when kernel disables it