]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-120593: Check -Wcast-qual flag in test_cext (#121081)
authorVictor Stinner <vstinner@python.org>
Thu, 27 Jun 2024 10:22:48 +0000 (12:22 +0200)
committerGitHub <noreply@github.com>
Thu, 27 Jun 2024 10:22:48 +0000 (10:22 +0000)
Check the usage of the 'const' qualifier in the Python C API in
test_cext.

Lib/test/test_cext/setup.py

index ccad3fa62ad08676c2887aee16f6723c172a3f7d..383d256c1eb53b92d5cb0a4a2b0c294b9056a42e 100644 (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(