https://github.com/python/cpython/commit/4b6de969ee925e95190c3d6e2f1a8ca064a84617
commit: 4b6de969ee925e95190c3d6e2f1a8ca064a84617
branch: 3.15
author: Victor Stinner <[email protected]>
committer: hugovk <[email protected]>
date: 2026-09-15T16:24:49+03:00
summary:
[3.15] gh-140550: Fix PyABIInfo_VAR macro: avoid ";" (#157494)
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]