Skip to content

Commit cbb43b8

Browse files
encukouvstinner
andauthored
gh-140550: Fix PyABIInfo_VAR macro: avoid ";" (#157539)
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 2fcb0e2 commit cbb43b8

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Include/modsupport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ PyAPI_FUNC(int) PyABIInfo_Check(PyABIInfo *info, const char *module_name);
140140
/////////////////////////////////////////////////////////
141141

142142
#define PyABIInfo_VAR(NAME) \
143-
static PyABIInfo NAME = _PyABIInfo_DEFAULT;
143+
static PyABIInfo NAME = _PyABIInfo_DEFAULT
144144

145145
#undef _PyABIInfo_DEFAULT_STABLE
146146
#undef _PyABIInfo_DEFAULT_FT
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Fix the :c:macro:`PyABIInfo_VAR` macro: remove redundant ``;``. Before,
2+
``PyABIInfo_VAR(abi_info);`` code added two ``;;`` which is illegal in C++03.
3+
Patch by Victor Stinner.

0 commit comments

Comments
 (0)