diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2001-10-23 02:21:22 +0000 |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2001-10-23 02:21:22 +0000 |
commit | 98a34806725799f67165ea072f3681b324bb0261 (patch) | |
tree | d5f7d7814bcde83e9e0ca79c4e45f5a5c4836b17 /Include/sysmodule.h | |
parent | 43c23d4d36a558c55d12a0f7b349322fae3e4957 (diff) | |
download | cpython-98a34806725799f67165ea072f3681b324bb0261.tar.gz |
Add function attributes that allow GCC to check the arguments of printf-like
functions.
Diffstat (limited to 'Include/sysmodule.h')
-rw-r--r-- | Include/sysmodule.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Include/sysmodule.h b/Include/sysmodule.h index 92f2207be3..ca6b6d7898 100644 --- a/Include/sysmodule.h +++ b/Include/sysmodule.h @@ -13,8 +13,10 @@ DL_IMPORT(FILE *) PySys_GetFile(char *, FILE *); DL_IMPORT(void) PySys_SetArgv(int, char **); DL_IMPORT(void) PySys_SetPath(char *); -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))); extern DL_IMPORT(PyObject *) _PySys_TraceFunc, *_PySys_ProfileFunc; extern DL_IMPORT(int) _PySys_CheckInterval; |