summaryrefslogtreecommitdiffstats
path: root/Lib/test/setup_testcppext.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-07-15 07:35:23 (GMT)
committerGitHub <noreply@github.com>2022-07-15 07:35:23 (GMT)
commitd9107aa0157a2ff6741b9aa2f78759e90f522bd7 (patch)
tree0bb4f2b8c0ac17fd92c03b7e5785d38e307938ae /Lib/test/setup_testcppext.py
parenta6c4ca9b7cc9d8e0715be099adf3aecc415539f8 (diff)
downloadcpython-d9107aa0157a2ff6741b9aa2f78759e90f522bd7.zip
cpython-d9107aa0157a2ff6741b9aa2f78759e90f522bd7.tar.gz
cpython-d9107aa0157a2ff6741b9aa2f78759e90f522bd7.tar.bz2
gh-94731: Revert to C-style casts for _Py_CAST (GH-94782) (#94849)
Co-authored-by: da-woods <dw-git@d-woods.co.uk> (cherry picked from commit 6cbb57f62d345d7a5d6aeb1b3b5d37a845344d5e)
Diffstat (limited to 'Lib/test/setup_testcppext.py')
-rw-r--r--Lib/test/setup_testcppext.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/test/setup_testcppext.py b/Lib/test/setup_testcppext.py
index ae81e33..c6b6810 100644
--- a/Lib/test/setup_testcppext.py
+++ b/Lib/test/setup_testcppext.py
@@ -17,8 +17,6 @@ if not MS_WINDOWS:
# a C++ extension using the Python C API does not emit C++ compiler
# warnings
'-Werror',
- # Warn on old-style cast (C cast) like: (PyObject*)op
- '-Wold-style-cast',
]
else:
# Don't pass any compiler flag to MSVC
@@ -37,9 +35,6 @@ def main():
name = '_testcpp11ext'
cppflags = [*CPPFLAGS, f'-std={std}']
- if std == 'c++11':
- # Warn when using NULL rather than _Py_NULL in static inline functions
- cppflags.append('-Wzero-as-null-pointer-constant')
cpp_ext = Extension(
name,