We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 039d20a commit 5405e9eCopy full SHA for 5405e9e
Lib/test/test_cext/__init__.py
@@ -1,5 +1,7 @@
1
# gh-116869: Build a basic C test extension to check that the Python C API
2
# does not emit C compiler warnings.
3
+#
4
+# Python C API must build with -Werror=declaration-after-statement.
5
6
import os.path
7
import shutil
Lib/test/test_cext/setup.py
@@ -16,6 +16,10 @@
16
# The purpose of test_cext extension is to check that building a C
17
# extension using the Python C API does not emit C compiler warnings.
18
'-Werror',
19
+
20
+ # gh-116869: The Python C API must build with
21
+ # -Werror=declaration-after-statement.
22
+ '-Werror=declaration-after-statement',
23
]
24
else:
25
# Don't pass any compiler flag to MSVC
0 commit comments