pgsql: Remove implicit cast from 'void *' - Mailing list pgsql-committers

From John Naylor
Subject pgsql: Remove implicit cast from 'void *'
Date
Msg-id E1uWpSU-004IUu-0B@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Fix bug in archive streamer with LZ4 decompression
Next
From: John Naylor
Date:
Subject: pgsql: Remove implicit cast from 'void *'