summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-07-22 23:33:22 (GMT)
committerThomas Wouters <thomas@python.org>2000-07-22 23:33:22 (GMT)
commitbd8ad942fe2cf22d741b3a132d98baa350537c77 (patch)
tree016e60497bacb58d4b17135ceb155986cd3b4eb3 /Parser
parent5f37591a164672ec25c389e646a763d40403cd79 (diff)
downloadcpython-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')
-rw-r--r--Parser/intrcheck.c3
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;