Skip to content

Commit ab343af

Browse files
committed
Add C formatting warning
1 parent c3c63ee commit ab343af

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@
3434
'-Wconversion',
3535
# /usr/lib64/pypy3.7/include/pyport.h:68:20: error: redefinition of typedef
3636
# 'Py_hash_t' is a C11 feature
37-
"-Wno-typedef-redefinition",
37+
'-Wno-typedef-redefinition',
38+
# Formatting checks
39+
'-Wformat',
40+
'-Wformat-nonliteral',
41+
'-Wformat-security',
3842
))
3943
CFLAGS = COMMON_FLAGS + [
4044
# Use C99 for pythoncapi_compat.c which initializes PyModuleDef with a

0 commit comments

Comments
 (0)