]> granicus.if.org Git - python/commitdiff
Remember to return something if RETSIGTYPE is not 'void'. Do we still need
authorThomas Wouters <thomas@python.org>
Sat, 22 Jul 2000 23:33:22 +0000 (23:33 +0000)
committerThomas Wouters <thomas@python.org>
Sat, 22 Jul 2000 23:33:22 +0000 (23:33 +0000)
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

index 34a3425d48ef39b21b3c02b348910322c139bc10..e9927e9cffb9389d79fa2870c70bb1547fe0c372 100644 (file)
@@ -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;