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:
Victor Stinner 2024-06-27 12:22:48 +02:00 committed by GitHub
parent 6f7acaab50
commit b7a95dfee3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(