summaryrefslogtreecommitdiff
path: root/Include/pgenheaders.h
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-10-23 02:21:22 +0000
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-10-23 02:21:22 +0000
commit98a34806725799f67165ea072f3681b324bb0261 (patch)
treed5f7d7814bcde83e9e0ca79c4e45f5a5c4836b17 /Include/pgenheaders.h
parent43c23d4d36a558c55d12a0f7b349322fae3e4957 (diff)
downloadcpython-98a34806725799f67165ea072f3681b324bb0261.tar.gz
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.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Include/pgenheaders.h b/Include/pgenheaders.h
index 20ac2c7be9..051173cc5e 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