]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
SF # 533070 Silence AIX C Compiler Warnings
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 13 Jun 2002 21:39:47 +0000 (21:39 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 13 Jun 2002 21:39:47 +0000 (21:39 +0000)
Warning caused by using &func.  & is not necessary.

Modules/signalmodule.c
Objects/object.c

index 1053cf1cf29df3efe552ec184430b8a6a36f861b..b6833525d0cabca1ea5def3d63407241530df3d3 100644 (file)
@@ -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
index 5564eefae2fdafca091ec27ba5e5727109a156fd..510ea736758df7c94af0f66c87366bff05d456e8 100644 (file)
@@ -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) */