Skip to content

Commit

Permalink
pythongh-120593: Check -Wcast-qual flag in test_cext (python#121081)
Browse files Browse the repository at this point in the history
Check the usage of the 'const' qualifier in the Python C API in
test_cext.
  • Loading branch information
vstinner authored and estyxx committed Jul 17, 2024
1 parent 144ab76 commit 7f9992b
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit 7f9992b

Please sign in to comment.