diff options
author | Jeffrey Yasskin <jyasskin@gmail.com> | 2009-05-29 03:44:31 (GMT) |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@gmail.com> | 2009-05-29 03:44:31 (GMT) |
commit | 7937d939b1e41e869ebd6a41787c186482f5950f (patch) | |
tree | 4dbf1908e42190ac3d3f877d55453f8d8f189477 /Mac | |
parent | 822b87f276d11cbe0d45f91cbeb9e9abdf231c7e (diff) | |
download | cpython-7937d939b1e41e869ebd6a41787c186482f5950f.zip cpython-7937d939b1e41e869ebd6a41787c186482f5950f.tar.gz cpython-7937d939b1e41e869ebd6a41787c186482f5950f.tar.bz2 |
Fix nearly all compilation warnings under Apple gcc-4.0. Tested with OPT="-g
-Wall -Wstrict-prototypes -Werror" in both --with-pydebug mode and --without.
There's still a batch of non-prototype warnings in Xlib.h that I don't know how
to fix.
Diffstat (limited to 'Mac')
-rwxr-xr-x | Mac/Modules/carbonevt/_CarbonEvtmodule.c | 12 | ||||
-rw-r--r-- | Mac/Modules/ctl/_Ctlmodule.c | 2 |
2 files changed, 1 insertions, 13 deletions
diff --git a/Mac/Modules/carbonevt/_CarbonEvtmodule.c b/Mac/Modules/carbonevt/_CarbonEvtmodule.c index 66e4e27..893beec 100755 --- a/Mac/Modules/carbonevt/_CarbonEvtmodule.c +++ b/Mac/Modules/carbonevt/_CarbonEvtmodule.c @@ -27,12 +27,6 @@ PyObject *EventHandlerCallRef_New(EventHandlerCallRef itself); PyObject *EventRef_New(EventRef itself); /********** EventTypeSpec *******/ -static PyObject* -EventTypeSpec_New(EventTypeSpec *in) -{ - return Py_BuildValue("ll", in->eventClass, in->eventKind); -} - static int EventTypeSpec_Convert(PyObject *v, EventTypeSpec *out) { @@ -67,12 +61,6 @@ HIPoint_Convert(PyObject *v, HIPoint *out) /********** EventHotKeyID *******/ -static PyObject* -EventHotKeyID_New(EventHotKeyID *in) -{ - return Py_BuildValue("ll", in->signature, in->id); -} - static int EventHotKeyID_Convert(PyObject *v, EventHotKeyID *out) { diff --git a/Mac/Modules/ctl/_Ctlmodule.c b/Mac/Modules/ctl/_Ctlmodule.c index d7d4d0a..cdb8557 100644 --- a/Mac/Modules/ctl/_Ctlmodule.c +++ b/Mac/Modules/ctl/_Ctlmodule.c @@ -1598,7 +1598,7 @@ static PyObject *CtlObj_GetBevelButtonMenuValue(ControlObject *_self, PyObject * { PyObject *_res = NULL; OSErr _err; - SInt16 outValue; + UInt16 outValue; #ifndef GetBevelButtonMenuValue PyMac_PRECHECK(GetBevelButtonMenuValue); #endif |