Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4178515

Browse files
committed
SF # 533070 Silence AIX C Compiler Warnings
Warning caused by using &func. & is not necessary.
1 parent e7b8ecf commit 4178515

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/signalmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ initsignal(void)
522522
Py_INCREF(IntHandler);
523523
Py_DECREF(Handlers[SIGINT].func);
524524
Handlers[SIGINT].func = IntHandler;
525-
old_siginthandler = PyOS_setsig(SIGINT, &signal_handler);
525+
old_siginthandler = PyOS_setsig(SIGINT, signal_handler);
526526
}
527527

528528
#ifdef SIGHUP

Objects/object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1953,7 +1953,7 @@ PyTypeObject *_Py_cobject_hack = &PyCObject_Type;
19531953

19541954

19551955
/* Hack to force loading of abstract.o */
1956-
int (*_Py_abstract_hack)(PyObject *) = &PyObject_Size;
1956+
int (*_Py_abstract_hack)(PyObject *) = PyObject_Size;
19571957

19581958

19591959
/* Python's malloc wrappers (see pymem.h) */

0 commit comments

Comments
 (0)