mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
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.
This commit is contained in:
parent
6f7acaab50
commit
b7a95dfee3
1 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,9 @@ if not support.MS_WINDOWS:
|
|||
# The purpose of test_cext extension is to check that building a C
|
||||
# extension using the Python C API does not emit C compiler warnings.
|
||||
'-Werror',
|
||||
|
||||
# gh-120593: Check the 'const' qualifier
|
||||
'-Wcast-qual',
|
||||
]
|
||||
if not support.Py_GIL_DISABLED:
|
||||
CFLAGS.append(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue