| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2529,6 +2529,10 @@ PyBytesWriter_WriteBytes(PyBytesWriter *writer, | |||
| 2529 | 2529 | return 0; | |
| 2530 | 2530 | } | |
| 2531 | 2531 | ||
| 2532 | + static inline int | ||
| 2533 | + PyBytesWriter_Format(PyBytesWriter *writer, const char *format, ...) | ||
| 2534 | + Py_GCC_ATTRIBUTE((format(printf, 2, 0))); | ||
| 2535 | + | ||
| 2532 | 2536 | static inline int | |
| 2533 | 2537 | PyBytesWriter_Format(PyBytesWriter *writer, const char *format, ...) | |
| 2534 | 2538 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,7 +34,11 @@ | |||
| 34 | 34 | '-Wconversion', | |
| 35 | 35 | # /usr/lib64/pypy3.7/include/pyport.h:68:20: error: redefinition of typedef | |
| 36 | 36 | # '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', | ||
| 38 | 42 | )) | |
| 39 | 43 | CFLAGS = COMMON_FLAGS + [ | |
| 40 | 44 | # Use C99 for pythoncapi_compat.c which initializes PyModuleDef with a | |
| Back | FazBrowse Home | New Git URL |
0 commit comments