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.