Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3685a43

Browse files
committed
ANSIfied function headers to shut up compiler warnings on OSX/Mach-o.
1 parent 6b9289f commit 3685a43

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

Mac/Modules/qd/Qdmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ typedef struct QDGlobalsAccessObject {
521521
PyObject_HEAD
522522
} QDGlobalsAccessObject;
523523

524-
static PyObject *QDGA_New()
524+
static PyObject *QDGA_New(void)
525525
{
526526
QDGlobalsAccessObject *it;
527527
it = PyObject_NEW(QDGlobalsAccessObject, &QDGlobalsAccess_Type);

Mac/Modules/qd/qdsupport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ def outputStructMembers(self):
450450
pass
451451
def outputNew(self):
452452
Output()
453-
Output("%sPyObject *%s_New()", self.static, self.prefix)
453+
Output("%sPyObject *%s_New(void)", self.static, self.prefix)
454454
OutLbrace()
455455
Output("%s *it;", self.objecttype)
456456
Output("it = PyObject_NEW(%s, &%s);", self.objecttype, self.typename)

Mac/Modules/snd/Sndmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ typedef struct SPBObject {
351351
SPB ob_spb;
352352
} SPBObject;
353353

354-
static PyObject *SPBObj_New()
354+
static PyObject *SPBObj_New(void)
355355
{
356356
SPBObject *it;
357357
it = PyObject_NEW(SPBObject, &SPB_Type);

Mac/Modules/snd/sndsupport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def outputStructMembers(self):
244244

245245
def outputNew(self):
246246
Output()
247-
Output("%sPyObject *%s_New()", self.static, self.prefix)
247+
Output("%sPyObject *%s_New(void)", self.static, self.prefix)
248248
OutLbrace()
249249
Output("%s *it;", self.objecttype)
250250
self.outputCheckNewArg()

0 commit comments

Comments
 (0)