From bd8ad942fe2cf22d741b3a132d98baa350537c77 Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Sat, 22 Jul 2000 23:33:22 +0000 Subject: 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. --- Parser/intrcheck.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Parser/intrcheck.c b/Parser/intrcheck.c index 34a3425..e9927e9 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; -- cgit v0.12