Skip to content

Commit b7a95df

Browse files
authored
gh-120593: Check -Wcast-qual flag in test_cext (#121081)
Check the usage of the 'const' qualifier in the Python C API in test_cext.
1 parent 6f7acaa commit b7a95df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_cext/setup.py

+3
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)