From: Victor Stinner Date: Thu, 27 Jun 2024 10:22:48 +0000 (+0200) Subject: gh-120593: Check -Wcast-qual flag in test_cext (#121081) X-Git-Tag: v3.14.0a1~1307 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b7a95dfee30aae171de47f98ed3b7d1cc08e5bd4;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/test/test_cext/setup.py b/Lib/test/test_cext/setup.py index ccad3fa62ad0..383d256c1eb5 100644 --- a/Lib/test/test_cext/setup.py +++ b/Lib/test/test_cext/setup.py @@ -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(