aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_cppext/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_cppext/setup.py')
-rw-r--r--Lib/test/test_cppext/setup.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_cppext/setup.py b/Lib/test/test_cppext/setup.py
index 019ff18446a..aa09c7bc8cb 100644
--- a/Lib/test/test_cppext/setup.py
+++ b/Lib/test/test_cppext/setup.py
@@ -18,6 +18,14 @@ if not support.MS_WINDOWS:
# a C++ extension using the Python C API does not emit C++ compiler
# warnings
'-Werror',
+
+ # Ask for strict(er) compliance with the standard.
+ '-pedantic-errors',
+
+ # But allow C++11 features for -std=C++03. We use:
+ # - `long long` (-Wno-c++11-long-long)
+ # - comma at end of `enum` lists (no narrower GCC option exists)
+ '-Wno-c++11-extensions',
]
else:
# MSVC compiler flags