We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f1da5d commit dd835ffCopy full SHA for dd835ff
tests/setup.py
@@ -41,11 +41,17 @@
41
else:
42
# C compiler flags for MSVC
43
COMMON_FLAGS.extend((
44
- # Display warnings level 1 to 4
45
- '/W4',
46
# Treat all compiler warnings as compiler errors
47
'/WX',
48
))
+ # Python 3.11 and older emits C4100 "unreferenced parameter" warnings
+ # on Py_UNUSED() parameters. Py_UNUSED() was modified in Python 3.12
49
+ # to support MSVC.
50
+ if sys.version_info >= (3, 12):
51
+ COMMON_FLAGS.extend((
52
+ # Display warnings level 1 to 4
53
+ '/W4',
54
+ ))
55
CFLAGS = list(COMMON_FLAGS)
56
CXXFLAGS = list(COMMON_FLAGS)
57
0 commit comments