office-gobmx/python3/python-3.3.0-gcc-4.8.patch.1
Stephan Bergmann c6cfd44717 Work around GCC 4.8 -Werror=format= in python3
...complainging that "‘PyArg_ParseTuple’ is an unrecognized format function
type."

Change-Id: I125af6669010c4c9c1a18cc7c1a4895acc89338b
2013-03-09 13:03:05 +01:00

15 lines
880 B
Groff

--- Python-3.3.0/Include/modsupport.h 2012-09-29 10:00:26.000000000 +0200
+++ Python-3.3.0/Include/modsupport.h 2013-03-08 10:46:28.671938738 +0100
@@ -26,7 +26,11 @@
/* Due to a glitch in 3.2, the _SizeT versions weren't exported from the DLL. */
#if !defined(PY_SSIZE_T_CLEAN) || !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
PyAPI_FUNC(int) PyArg_Parse(PyObject *, const char *, ...);
-PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...) Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3);
+PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...)
+#ifdef PY_SSIZE_T_CLEAN
+ Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3)
+#endif
+ ;
PyAPI_FUNC(int) PyArg_ParseTupleAndKeywords(PyObject *, PyObject *,
const char *, char **, ...);
PyAPI_FUNC(int) PyArg_ValidateKeywordArguments(PyObject *);