pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Remove implicit cast from 'void *'
2+ messages / 1 participants
[nested] [flat]

* pgsql: Remove implicit cast from 'void *'
@ 2025-07-02 04:52  John Naylor <john.naylor@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: John Naylor @ 2025-07-02 04:52 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Remove implicit cast from 'void *'

Commit e2809e3a101 added code to a header which assigns a pointer
to void to a pointer to unsigned char. This causes build errors for
extensions written in C++. Fix by adding an explicit cast.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CANWCAZaCq9AHBuhs%3DMx7Gg_0Af9oRU7iAqr0itJCtfmsWwVmnQ%40mail.gmail.com
Backpatch-through: 18

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9adb58a3ccb5ad28e773684db33ffcb1ebbd5ef1

Modified Files
--------------
src/include/port/pg_crc32c.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Remove implicit cast from 'void *'
@ 2025-07-02 04:52  John Naylor <john.naylor@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: John Naylor @ 2025-07-02 04:52 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Remove implicit cast from 'void *'

Commit e2809e3a101 added code to a header which assigns a pointer
to void to a pointer to unsigned char. This causes build errors for
extensions written in C++. Fix by adding an explicit cast.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CANWCAZaCq9AHBuhs%3DMx7Gg_0Af9oRU7iAqr0itJCtfmsWwVmnQ%40mail.gmail.com
Backpatch-through: 18

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3e73d8735371fc20a13fb4b68fc643909749dde0

Modified Files
--------------
src/include/port/pg_crc32c.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2025-07-02 04:52 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-07-02 04:52 pgsql: Remove implicit cast from 'void *' John Naylor <john.naylor@postgresql.org>
2025-07-02 04:52 pgsql: Remove implicit cast from 'void *' John Naylor <john.naylor@postgresql.org>

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