From 4178515035af42b6343bcd3e5df92d052c6f13dd Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Thu, 13 Jun 2002 21:42:51 +0000 Subject: SF # 533070 Silence AIX C Compiler Warnings Warning caused by using &func. & is not necessary. --- Modules/signalmodule.c | 2 +- Objects/object.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index 395e654..240e9a9 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -522,7 +522,7 @@ initsignal(void) Py_INCREF(IntHandler); Py_DECREF(Handlers[SIGINT].func); Handlers[SIGINT].func = IntHandler; - old_siginthandler = PyOS_setsig(SIGINT, &signal_handler); + old_siginthandler = PyOS_setsig(SIGINT, signal_handler); } #ifdef SIGHUP diff --git a/Objects/object.c b/Objects/object.c index b196d14..206746b 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -1953,7 +1953,7 @@ PyTypeObject *_Py_cobject_hack = &PyCObject_Type; /* Hack to force loading of abstract.o */ -int (*_Py_abstract_hack)(PyObject *) = &PyObject_Size; +int (*_Py_abstract_hack)(PyObject *) = PyObject_Size; /* Python's malloc wrappers (see pymem.h) */ -- cgit v0.12