diff -rupN Python-2.7.13/Include/pgenheaders.h Python-2.7.13-new/Include/pgenheaders.h
--- Python-2.7.13/Include/pgenheaders.h 2016-12-17 21:05:05.000000000 +0100
+++ Python-2.7.13-new/Include/pgenheaders.h 2017-01-21 01:46:15.310513559 +0100
@@ -10,9 +10,9 @@ extern "C" {
#include "Python.h"
PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)
- Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 1, 2)));
PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...)
- Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 1, 2)));
#define addarc _Py_addarc
#define addbit _Py_addbit
diff -rupN Python-2.7.13/Include/pyerrors.h Python-2.7.13-new/Include/pyerrors.h
--- Python-2.7.13/Include/pyerrors.h 2016-12-17 21:05:05.000000000 +0100
+++ Python-2.7.13-new/Include/pyerrors.h 2017-01-21 01:46:15.311513548 +0100
@@ -194,7 +194,7 @@ PyAPI_FUNC(PyObject *) PyErr_SetFromErrn
#endif /* MS_WINDOWS */
PyAPI_FUNC(PyObject *) PyErr_Format(PyObject *, const char *, ...)
- Py_GCC_ATTRIBUTE((format(printf, 2, 3)));
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 2, 3)));
#ifdef MS_WINDOWS
PyAPI_FUNC(PyObject *) PyErr_SetFromWindowsErrWithFilenameObject(
@@ -319,9 +319,9 @@ PyAPI_FUNC(int) PyUnicodeTranslateError_
#include <stdarg.h>
PyAPI_FUNC(int) PyOS_snprintf(char *str, size_t size, const char *format, ...)
- Py_GCC_ATTRIBUTE((format(printf, 3, 4)));
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 3, 4)));
PyAPI_FUNC(int) PyOS_vsnprintf(char *str, size_t size, const char *format, va_list va)
- Py_GCC_ATTRIBUTE((format(printf, 3, 0)));
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 3, 0)));
#ifdef __cplusplus
}
diff -rupN Python-2.7.13/Include/stringobject.h Python-2.7.13-new/Include/stringobject.h
--- Python-2.7.13/Include/stringobject.h 2016-12-17 21:05:05.000000000 +0100
+++ Python-2.7.13-new/Include/stringobject.h 2017-01-21 01:46:15.311513548 +0100
@@ -62,9 +62,9 @@ PyAPI_DATA(PyTypeObject) PyString_Type;
PyAPI_FUNC(PyObject *) PyString_FromStringAndSize(const char *, Py_ssize_t);
PyAPI_FUNC(PyObject *) PyString_FromString(const char *);
PyAPI_FUNC(PyObject *) PyString_FromFormatV(const char*, va_list)
- Py_GCC_ATTRIBUTE((format(printf, 1, 0)));
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 1, 0)));
PyAPI_FUNC(PyObject *) PyString_FromFormat(const char*, ...)
- Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 1, 2)));
PyAPI_FUNC(Py_ssize_t) PyString_Size(PyObject *);
PyAPI_FUNC(char *) PyString_AsString(PyObject *);
PyAPI_FUNC(PyObject *) PyString_Repr(PyObject *, int);
diff -rupN Python-2.7.13/Include/sysmodule.h Python-2.7.13-new/Include/sysmodule.h
--- Python-2.7.13/Include/sysmodule.h 2016-12-17 21:05:05.000000000 +0100
+++ Python-2.7.13-new/Include/sysmodule.h 2017-01-21 01:46:15.311513548 +0100
@@ -15,9 +15,9 @@ PyAPI_FUNC(void) PySys_SetArgvEx(int, ch
PyAPI_FUNC(void) PySys_SetPath(char *);
PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)
- Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 1, 2)));
PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...)
- Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 1, 2)));
PyAPI_FUNC(void) PySys_ResetWarnOptions(void);
PyAPI_FUNC(void) PySys_AddWarnOption(char *);