https://github.com/python/cpython/commit/cbb43b830e01fb558c28e69af3980a046025b6df commit: cbb43b830e01fb558c28e69af3980a046025b6df branch: main author: Petr Viktorin <[email protected]> committer: hugovk <[email protected]> date: 2026-09-15T16:24:28+03:00 summary:
gh-140550: Fix PyABIInfo_VAR macro: avoid ";" (#157539) Co-authored-by: Victor Stinner <[email protected]> files: A Misc/NEWS.d/next/C_API/2026-09-14-18-07-43.gh-issue-140550.fLVOGn.rst M Include/modsupport.h diff --git a/Include/modsupport.h b/Include/modsupport.h index cb47ad8cd2727fd..504a19d341a78a7 100644 --- a/Include/modsupport.h +++ b/Include/modsupport.h @@ -140,7 +140,7 @@ PyAPI_FUNC(int) PyABIInfo_Check(PyABIInfo *info, const char *module_name); ///////////////////////////////////////////////////////// #define PyABIInfo_VAR(NAME) \ - static PyABIInfo NAME = _PyABIInfo_DEFAULT; + static PyABIInfo NAME = _PyABIInfo_DEFAULT #undef _PyABIInfo_DEFAULT_STABLE #undef _PyABIInfo_DEFAULT_FT diff --git a/Misc/NEWS.d/next/C_API/2026-09-14-18-07-43.gh-issue-140550.fLVOGn.rst b/Misc/NEWS.d/next/C_API/2026-09-14-18-07-43.gh-issue-140550.fLVOGn.rst new file mode 100644 index 000000000000000..146ea1968a0816e --- /dev/null +++ b/Misc/NEWS.d/next/C_API/2026-09-14-18-07-43.gh-issue-140550.fLVOGn.rst @@ -0,0 +1,3 @@ +Fix the :c:macro:`PyABIInfo_VAR` macro: remove redundant ``;``. Before, +``PyABIInfo_VAR(abi_info);`` code added two ``;;`` which is illegal in C++03. +Patch by Victor Stinner. _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
