summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-06-20 21:22:23 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-06-20 21:22:23 (GMT)
commit3685a4328d30126b0271c38c155a502bd212c25d (patch)
treecec5ae56d4e77367d80524778f48db0329edb1f7
parent6b9289ff1a89158e7e54781ae540c721473dc5c5 (diff)
downloadcpython-3685a4328d30126b0271c38c155a502bd212c25d.zip
cpython-3685a4328d30126b0271c38c155a502bd212c25d.tar.gz
cpython-3685a4328d30126b0271c38c155a502bd212c25d.tar.bz2
ANSIfied function headers to shut up compiler warnings on OSX/Mach-o.
-rw-r--r--Mac/Modules/qd/Qdmodule.c2
-rw-r--r--Mac/Modules/qd/qdsupport.py2
-rw-r--r--Mac/Modules/snd/Sndmodule.c2
-rw-r--r--Mac/Modules/snd/sndsupport.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Modules/qd/Qdmodule.c b/Mac/Modules/qd/Qdmodule.c
index ca434f0..c65448e 100644
--- a/Mac/Modules/qd/Qdmodule.c
+++ b/Mac/Modules/qd/Qdmodule.c
@@ -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);
diff --git a/Mac/Modules/qd/qdsupport.py b/Mac/Modules/qd/qdsupport.py
index 87e1080..cd6282b 100644
--- a/Mac/Modules/qd/qdsupport.py
+++ b/Mac/Modules/qd/qdsupport.py
@@ -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)
diff --git a/Mac/Modules/snd/Sndmodule.c b/Mac/Modules/snd/Sndmodule.c
index dea89ed..a561a95 100644
--- a/Mac/Modules/snd/Sndmodule.c
+++ b/Mac/Modules/snd/Sndmodule.c
@@ -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);
diff --git a/Mac/Modules/snd/sndsupport.py b/Mac/Modules/snd/sndsupport.py
index d0b8c8b..dcaa654 100644
--- a/Mac/Modules/snd/sndsupport.py
+++ b/Mac/Modules/snd/sndsupport.py
@@ -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()