Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-120593: Check -Wcast-qual flag in test_cext
Check the usage of the 'const' qualifier in the Python C API in
test_cext.
  • Loading branch information
vstinner committed Jun 27, 2024
commit c558559240b45c2f93a61b9ddef6b65ba98f14a0
3 changes: 3 additions & 0 deletions Lib/test/test_cext/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
# 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(
Expand Down