Kaydet (Commit) 3685a432 authored tarafından Jack Jansen's avatar Jack Jansen

ANSIfied function headers to shut up compiler warnings on OSX/Mach-o.

üst 6b9289ff
......@@ -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 @@ class QDGlobalsAccessObjectDefinition(ObjectDefinition):
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 @@ class SpbObjectDefinition(ObjectDefinition):
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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment