diff options
author | Victor Stinner <vstinner@python.org> | 2024-09-19 20:32:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-19 20:32:01 (GMT) |
commit | 7a2d77c903f29d7ea08b870b8e3fa2130f667a59 (patch) | |
tree | fecf94a581f31a594a86c6760261dc0b04131f30 /Lib/test/test_cppext | |
parent | 5f011115943933ff36adf997c886d73ea88003fb (diff) | |
download | cpython-7a2d77c903f29d7ea08b870b8e3fa2130f667a59.zip cpython-7a2d77c903f29d7ea08b870b8e3fa2130f667a59.tar.gz cpython-7a2d77c903f29d7ea08b870b8e3fa2130f667a59.tar.bz2 |
test_cext, test_cppext: enable /W4 warnings on Windows (#124253)
Add an explicit cast to (void*) and add Py_UNUSED() to fix some
warnings in extension.c.
Diffstat (limited to 'Lib/test/test_cppext')
-rw-r--r-- | Lib/test/test_cppext/setup.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_cppext/setup.py b/Lib/test/test_cppext/setup.py index f1848f2..d97b238 100644 --- a/Lib/test/test_cppext/setup.py +++ b/Lib/test/test_cppext/setup.py @@ -22,6 +22,8 @@ if not support.MS_WINDOWS: else: # MSVC compiler flags CPPFLAGS = [ + # Display warnings level 1 to 4 + '/W4', # Treat all compiler warnings as compiler errors '/WX', ] |