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
5 changes: 5 additions & 0 deletions Include/cpython/initconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ typedef struct {
} _type;
const char *func;
const char *err_msg;
#if defined(__cplusplus) && defined(__clang__) && __clang_major__ < 22
// gh-160436: clang < 22 warns in the implicit copy/move members
int exitcode;
#else
Py_DEPRECATED(3.16) int exitcode;
#endif
} PyStatus;

PyAPI_FUNC(PyStatus) PyStatus_Ok(void);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Fix a spurious ``-Wdeprecated-declarations`` warning when a
:c:type:`PyStatus` is copied in C++ with clang 21 and older:
:c:member:`PyStatus.exitcode` is no longer marked as deprecated for C++ on
those compilers.
Loading