mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.
This commit is contained in:
parent
5f01111594
commit
7a2d77c903
3 changed files with 12 additions and 2 deletions
|
@ -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',
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue