| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Avoid mixing designated and non-designated field initializers. |
| Date: | 2025-03-27 15:06:55 |
| Message-ID: | E1txoop-001H7K-1o@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Avoid mixing designated and non-designated field initializers.
As revised by commit 9324c8c58, PG_MODULE_MAGIC constructed a
struct initializer containing both designated fields and a
non-designated "0". That's okay in C, but not in C++, with
the result that extensions written in C++ failed to compile.
Change it to use only designated field initializers.
Author: Yurii Rashkovskii <yrashk(at)omnigres(dot)com>
Discussion: https://postgr.es/m/CAG=VW14mctsR543gpzLCuJ9JgJqwa=ptmBfGvxEjs+k8Jf7-Bg@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/d66997dfe8fe5a2fc6e25a64e78309ca2094f396
Modified Files
--------------
src/include/fmgr.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2025-03-27 17:20:38 | pgsql: Prevent assertion failure in contrib/pg_freespacemap. |
| Previous Message | Daniel Gustafsson | 2025-03-27 13:27:17 | pgsql: psql: Fix incorrect equality comparison |