]> granicus.if.org Git - python/commitdiff
SF # 533070 Silence AIX C Compiler Warnings
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 13 Jun 2002 21:42:51 +0000 (21:42 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 13 Jun 2002 21:42:51 +0000 (21:42 +0000)
Warning caused by using &func.  & is not necessary.

Modules/signalmodule.c
Objects/object.c

index 395e654bb227b968e251724dec7d2fbfc46016b4..240e9a9baab0e82851cf262da68da1cfa6476424 100644 (file)
@@ -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
index b196d147489c9ad2774e24b6b2d2f350320c2371..206746b9184b315e374596806575f94d681e5d1d 100644 (file)
@@ -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) */