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/Modules/carbonevt/_CarbonEvtmodule.c | |
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/Modules/carbonevt/_CarbonEvtmodule.c')
-rwxr-xr-x | Mac/Modules/carbonevt/_CarbonEvtmodule.c | 12 |
1 files changed, 0 insertions, 12 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) { |