Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Include/slots.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ struct PySlot {
#define PySlot_STATIC_DATA(NAME, VALUE) \
{.sl_id=(NAME), .sl_flags=PySlot_STATIC, .sl_ptr=(VALUE)}

#define PySlot_END {0}
#define PySlot_END {0, 0, {0}, {_Py_NULL}}


// Macros without designated initializers (for C++11 and below):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix the :c:macro:`PySlot_END` macro for C++: initialize all members to avoid
compiler warnings. Patch by Victor Stinner.
Loading