diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2001-10-23 02:21:22 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2001-10-23 02:21:22 (GMT) |
commit | 90b689076a6dcb55dcac6c5efbc9e4aa793e6c72 (patch) | |
tree | 0d673dc58dec42d1fde0a7d2de01af8f3c3ac100 /Include/pgenheaders.h | |
parent | 156910851e31d4e7f8d1441a3b05a44b31349adf (diff) | |
download | cpython-90b689076a6dcb55dcac6c5efbc9e4aa793e6c72.zip cpython-90b689076a6dcb55dcac6c5efbc9e4aa793e6c72.tar.gz cpython-90b689076a6dcb55dcac6c5efbc9e4aa793e6c72.tar.bz2 |
Add function attributes that allow GCC to check the arguments of printf-like
functions.
Diffstat (limited to 'Include/pgenheaders.h')
-rw-r--r-- | Include/pgenheaders.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Include/pgenheaders.h b/Include/pgenheaders.h index 20ac2c7..051173c 100644 --- a/Include/pgenheaders.h +++ b/Include/pgenheaders.h @@ -25,8 +25,10 @@ extern "C" { #include "pydebug.h" -DL_IMPORT(void) PySys_WriteStdout(const char *format, ...); -DL_IMPORT(void) PySys_WriteStderr(const char *format, ...); +DL_IMPORT(void) PySys_WriteStdout(const char *format, ...) + __attribute__((format(printf, 1, 2))); +DL_IMPORT(void) PySys_WriteStderr(const char *format, ...) + __attribute__((format(printf, 1, 2))); #define addarc _Py_addarc #define addbit _Py_addbit |