pgsql: Change StaticAssertVariableIsOfType to be a declaration

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Change StaticAssertVariableIsOfType to be a declaration
Date: 2026-02-03 08:07:51
Message-ID: E1vnBRv-000sFs-0H@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Change StaticAssertVariableIsOfType to be a declaration

This allows moving the uses to more natural and useful positions.
Also, a declaration is the more native use of static assertions in C.

Reviewed-by: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/2273bc2a-045d-4a75-8584-7cd9396e5534%40eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/955e50766869a5ccf862d7f8439f5d35b723c0f9

Modified Files
--------------
contrib/hstore_plperl/hstore_plperl.c | 13 +++++++------
contrib/hstore_plpython/hstore_plpython.c | 17 +++++++++--------
contrib/jsonb_plpython/jsonb_plpython.c | 10 ++++++----
contrib/ltree_plpython/ltree_plpython.c | 5 +++--
src/include/c.h | 6 +++---
5 files changed, 28 insertions(+), 23 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Álvaro Herrera 2026-02-03 11:39:38 pgsql: Reject ADD CONSTRAINT NOT NULL if name mismatches existing const
Previous Message Michael Paquier 2026-02-03 03:27:44 pgsql: Add two IO wait events for COPY FROM/TO on a pipe/file/program