aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_cppext.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_cppext.py')
-rw-r--r--Lib/test/test_cppext.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_cppext.py b/Lib/test/test_cppext.py
index 99f6062d79d..fbb79bb8ac3 100644
--- a/Lib/test/test_cppext.py
+++ b/Lib/test/test_cppext.py
@@ -27,6 +27,8 @@ 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