8000 gh-120593: Check -Wcast-qual flag in test_cext · vstinner/cpython@c558559 · GitHub
[go: up one dir, main page]

Skip to content

Commit c558559

Browse files
committed
pythongh-120593: Check -Wcast-qual flag in test_cext
Check the usage of the 'const' qualifier in the Python C API in test_cext.
1 parent 4999e0b commit c558559

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_cext/setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
# The purpose of test_cext extension is to check that building a C
1818
# extension using the Python C API does not emit C compiler warnings.
1919
'-Werror',
20+
21+
# gh-120593: Check the 'const' qualifier
22+
'-Wcast-qual',
2023
]
2124
if not support.Py_GIL_DISABLED:
2225
CFLAGS.append(

0 commit comments

Comments
 (0)
0