From: Thomas Wouters Date: Sat, 22 Jul 2000 23:33:22 +0000 (+0000) Subject: Remember to return something if RETSIGTYPE is not 'void'. Do we still need X-Git-Tag: v2.0b1~769 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd8ad942fe2cf22d741b3a132d98baa350537c77;p=python Remember to return something if RETSIGTYPE is not 'void'. Do we still need to worry about systems that have signal-handlers return 'int' ? Not all of the code does, though nothing will break because of it. --- diff --git a/Parser/intrcheck.c b/Parser/intrcheck.c index 34a3425d48..e9927e9cff 100644 --- a/Parser/intrcheck.c +++ b/Parser/intrcheck.c @@ -168,6 +168,9 @@ intcatcher(int sig) } signal(SIGINT, intcatcher); Py_AddPendingCall(checksignals_witharg, NULL); +#if RETSIGTYPE != void + return 0; +#endif } static RETSIGTYPE (*old_siginthandler)(int) = SIG_DFL;