From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make unconstify and unvolatize use StaticAssertVariableIsOfTypeM
Date: Fri, 06 Mar 2026 09:22:45 +0000
Message-ID: <E1vyROP-002eVF-12@gemulon.postgresql.org> (raw)
Make unconstify and unvolatize use StaticAssertVariableIsOfTypeMacro
The unconstify and unvolatize macros had an almost identical assertion
as was already defined in StaticAssertVariableIsOfTypeMacro, only it
had a less useful error message and didn't have a sizeof fallback.
Author: Jelte Fennema-Nio <postgres@jeltef.nl>
Discussion: https://www.postgresql.org/message-id/flat/CAGECzQR21OnnKiZO_1rLWO0-16kg1JBxnVq-wymYW0-_1cUNtg@mail....
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/258248d0bdbf1b1818e2c6a157b17227fd000d76
Modified Files
--------------
src/include/c.h | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Make unconstify and unvolatize use StaticAssertVariableIsOfTypeM
In-Reply-To: <E1vyROP-002eVF-12@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox