Skip to content

Commit 7870668

Browse files
committed
Fix tests on Windows: use /W3
1 parent 49faa0c commit 7870668

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

Lib/test/test_cext/setup.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,23 @@
3636
# with the -Werror=declaration-after-statement compiler flag.
3737
'-Werror=declaration-after-statement',
3838
)
39+
INTERNAL_CFLAGS = [*BASE_CFLAGS]
3940
else:
4041
# MSVC compiler flags
4142
BASE_CFLAGS = [
42-
# Display warnings level 1 to 4
43-
'/W4',
4443
# Treat all compiler warnings as compiler errors
4544
'/WX',
4645
]
47-
PUBLIC_CFLAGS = [*BASE_CFLAGS]
48-
INTERNAL_CFLAGS = [*BASE_CFLAGS]
46+
PUBLIC_CFLAGS = [
47+
*BASE_CFLAGS,
48+
# Display warnings level 1 to 4
49+
'/W4',
50+
]
51+
INTERNAL_CFLAGS = [
52+
*BASE_CFLAGS,
53+
# Display warnings level 1 to 3
54+
'/W3',
55+
]
4956

5057

5158
def main():

0 commit comments

Comments
 (0)