Re: Mark function arguments of type "T *" as "const T *" where possible
Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
From: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
To: pgsql-hackers@lists.postgresql.org
Date: 2025-12-10T06:39:40Z
Lists: 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