mirror of https://github.com/python/cpython.git
ANSIfied function headers to shut up compiler warnings on OSX/Mach-o.
This commit is contained in:
parent
6b9289ff1a
commit
3685a4328d
|
@ -521,7 +521,7 @@ typedef struct QDGlobalsAccessObject {
|
|||
PyObject_HEAD
|
||||
} QDGlobalsAccessObject;
|
||||
|
||||
static PyObject *QDGA_New()
|
||||
static PyObject *QDGA_New(void)
|
||||
{
|
||||
QDGlobalsAccessObject *it;
|
||||
it = PyObject_NEW(QDGlobalsAccessObject, &QDGlobalsAccess_Type);
|
||||
|
|
|
@ -450,7 +450,7 @@ def outputStructMembers(self):
|
|||
pass
|
||||
def outputNew(self):
|
||||
Output()
|
||||
Output("%sPyObject *%s_New()", self.static, self.prefix)
|
||||
Output("%sPyObject *%s_New(void)", self.static, self.prefix)
|
||||
OutLbrace()
|
||||
Output("%s *it;", self.objecttype)
|
||||
Output("it = PyObject_NEW(%s, &%s);", self.objecttype, self.typename)
|
||||
|
|
|
@ -351,7 +351,7 @@ typedef struct SPBObject {
|
|||
SPB ob_spb;
|
||||
} SPBObject;
|
||||
|
||||
static PyObject *SPBObj_New()
|
||||
static PyObject *SPBObj_New(void)
|
||||
{
|
||||
SPBObject *it;
|
||||
it = PyObject_NEW(SPBObject, &SPB_Type);
|
||||
|
|
|
@ -244,7 +244,7 @@ def outputStructMembers(self):
|
|||
|
||||
def outputNew(self):
|
||||
Output()
|
||||
Output("%sPyObject *%s_New()", self.static, self.prefix)
|
||||
Output("%sPyObject *%s_New(void)", self.static, self.prefix)
|
||||
OutLbrace()
|
||||
Output("%s *it;", self.objecttype)
|
||||
self.outputCheckNewArg()
|
||||
|
|
Loading…
Reference in New Issue