pgsql: Add type cast to foreach_internal's loop variable.

From: Nathan Bossart <nathan(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add type cast to foreach_internal's loop variable.
Date: 2024-10-15 21:21:59
Message-ID: E1t0ozP-000ygb-OB@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add type cast to foreach_internal's loop variable.

C++ requires explicitly casting void pointers to the appropriate
pointer type, which means the foreach_ptr macro cannot be used in
C++ code without this change.

Author: Jelte Fennema-Nio
Reviewed-by: Bruce Momjian
Discussion: https://postgr.es/m/CAGECzQSYG3QfHrc-rOk2KbnB9iJOd7Qu-Xii1s-GTA%3D3JFt49Q%40mail.gmail.com
Backpatch-through: 17

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/8aaca078510436213be5416a7227115ec83b68a3

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

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2024-10-16 06:35:32 pgsql: doc: Fix initdb option xreflabels
Previous Message David Rowley 2024-10-15 08:14:53 pgsql: Move clause_sides_match_join() into restrictinfo.h