From: Martin v. Löwis Date: Tue, 6 Mar 2001 12:13:56 +0000 (+0000) Subject: Document SIG_* warning causes on Solaris. X-Git-Tag: v2.1b2~216 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f58de1bd678e3d032ff8f6a569b5448d68eb1ff7;p=thirdparty%2FPython%2Fcpython.git Document SIG_* warning causes on Solaris. --- diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index b9f7963f8df2..0ce755f2fae2 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -85,6 +85,11 @@ static PyObject *DefaultHandler; static PyObject *IgnoreHandler; static PyObject *IntHandler; +/* On Solaris 8, gcc will produce a warning that the function + declaration is not a prototype. This is caused by the definition of + SIG_DFL as (void (*)())0; the correct declaration would have been + (void (*)(int))0. */ + static PyOS_sighandler_t old_siginthandler = SIG_DFL;