pgsql: Don't take the address of flexible array members

Started by Peter Eisentrautabout 2 months ago1 messagescommitters
Jump to latest
#1Peter Eisentraut
peter@eisentraut.org

Don't take the address of flexible array members

Apple clang rejects taking the address of a flexible array member that
carries a counted_by attribute. A future patch wants to add that
attribute to two such places. To avoid problems, use the array itself
instead taking its address with &, which yields the same
address. (There are a few more, but they are not candidates for a
counted_by attribute, so they are left alone here.)

Discussion: /messages/by-id/DKBEBF32QLUA.3L2DJRPUYNKHZ@partin.io

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/675dd940bc459f3e1748ffcd82c48f24c29b2a80

Modified Files
--------------
src/backend/executor/execParallel.c | 2 +-
src/bin/pg_rewind/filemap.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)