diff options
author | Thomas Wouters <thomas@python.org> | 2000-07-22 23:33:22 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2000-07-22 23:33:22 (GMT) |
commit | bd8ad942fe2cf22d741b3a132d98baa350537c77 (patch) | |
tree | 016e60497bacb58d4b17135ceb155986cd3b4eb3 /Parser/intrcheck.c | |
parent | 5f37591a164672ec25c389e646a763d40403cd79 (diff) | |
download | cpython-bd8ad942fe2cf22d741b3a132d98baa350537c77.zip cpython-bd8ad942fe2cf22d741b3a132d98baa350537c77.tar.gz cpython-bd8ad942fe2cf22d741b3a132d98baa350537c77.tar.bz2 |
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.
Diffstat (limited to 'Parser/intrcheck.c')
-rw-r--r-- | Parser/intrcheck.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |