Skip to content

Commit 0f1da5d

Browse files
committed
Build C and C++ extensions with /W4 on Windows
Remove also -Wno-typedef-redefinition flag.
1 parent 6290c7b commit 0f1da5d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@
3232
'-Wall', '-Wextra',
3333
# Extra warnings
3434
'-Wconversion',
35-
# /usr/lib64/pypy3.7/include/pyport.h:68:20: error: redefinition of typedef
36-
# 'Py_hash_t' is a C11 feature
37-
'-Wno-typedef-redefinition',
3835
# Formatting checks
3936
'-Wformat',
4037
'-Wformat-nonliteral',
@@ -44,6 +41,8 @@
4441
else:
4542
# C compiler flags for MSVC
4643
COMMON_FLAGS.extend((
44+
# Display warnings level 1 to 4
45+
'/W4',
4746
# Treat all compiler warnings as compiler errors
4847
'/WX',
4948
))

0 commit comments

Comments
 (0)