summaryrefslogtreecommitdiffstats
path: root/Lib/test/setup_testcppext.py
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2022-07-14 09:57:18 (GMT)
committerGitHub <noreply@github.com>2022-07-14 09:57:18 (GMT)
commit6cbb57f62d345d7a5d6aeb1b3b5d37a845344d5e (patch)
tree4a36bb68bad648cac32fe0e49b9888dd9616826f /Lib/test/setup_testcppext.py
parent81dca70d704d0834d8c30580e648a973250b2973 (diff)
downloadcpython-6cbb57f62d345d7a5d6aeb1b3b5d37a845344d5e.zip
cpython-6cbb57f62d345d7a5d6aeb1b3b5d37a845344d5e.tar.gz
cpython-6cbb57f62d345d7a5d6aeb1b3b5d37a845344d5e.tar.bz2
gh-94731: Revert to C-style casts for _Py_CAST (GH-94782)
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
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,