From: Neal Norwitz Date: Thu, 13 Jun 2002 21:39:47 +0000 (+0000) Subject: SF # 533070 Silence AIX C Compiler Warnings X-Git-Tag: v2.2.2b1~326 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=046b35cf44613f31d78a1136875fffc580b2a8ff;p=thirdparty%2FPython%2Fcpython.git SF # 533070 Silence AIX C Compiler Warnings Warning caused by using &func. & is not necessary. --- diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index 1053cf1cf29d..b6833525d0ca 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -366,7 +366,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 5564eefae2fd..510ea736758d 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -1884,7 +1884,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) */