pgsql: Make unconstify and unvolatize use StaticAssertVariableIsOfTypeM

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Make unconstify and unvolatize use StaticAssertVariableIsOfTypeM
Date: 2026-03-06 09:22:45
Message-ID: E1vyROP-002eVF-12@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)jeltef(dot)nl>
Discussion: https://www.postgresql.org/message-id/flat/CAGECzQR21OnnKiZO_1rLWO0-16kg1JBxnVq-wymYW0-_1cUNtg(at)mail(dot)gmail(dot)com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/258248d0bdbf1b1818e2c6a157b17227fd000d76

Modified Files
--------------
src/include/c.h | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2026-03-06 09:49:19 pgsql: doc: Fix capitalization of Unicode
Previous Message Peter Eisentraut 2026-03-06 08:34:21 pgsql: Portable StaticAssertExpr