summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-06-13 21:39:47 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-06-13 21:39:47 (GMT)
commit046b35cf44613f31d78a1136875fffc580b2a8ff (patch)
tree2787f9197c157d2e84d40320d226f943680d097c
parenta9d29fed5482cc5a48c132db0be38ef7797c436a (diff)
downloadcpython-046b35cf44613f31d78a1136875fffc580b2a8ff.zip
cpython-046b35cf44613f31d78a1136875fffc580b2a8ff.tar.gz
cpython-046b35cf44613f31d78a1136875fffc580b2a8ff.tar.bz2
SF # 533070 Silence AIX C Compiler Warnings
Warning caused by using &func. & is not necessary.
-rw-r--r--Modules/signalmodule.c2
-rw-r--r--Objects/object.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c
index 1053cf1..b683352 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 5564eef..510ea73 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) */