Skip to content

Commit de2d038

Browse files
committed
Merge upstream main into gh-158907-proxy-auth-direct-407
2 parents b9bdbcc + ba9d96f commit de2d038

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎Include/slots.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct PySlot {
4242
#define PySlot_STATIC_DATA(NAME, VALUE) \
4343
{.sl_id=(NAME), .sl_flags=PySlot_STATIC, .sl_ptr=(VALUE)}
4444

45-
#define PySlot_END {0}
45+
#define PySlot_END {0, 0, {0}, {_Py_NULL}}
4646

4747

4848
// Macros without designated initializers (for C++11 and below):
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix the :c:macro:`PySlot_END` macro for C++: initialize all members to avoid
2+
compiler warnings. Patch by Victor Stinner.

0 commit comments

Comments
 (0)