Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd8ad94

Browse files
committed
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.
1 parent 5f37591 commit bd8ad94

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Parser/intrcheck.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ intcatcher(int sig)
168168
}
169169
signal(SIGINT, intcatcher);
170170
Py_AddPendingCall(checksignals_witharg, NULL);
171+
#if RETSIGTYPE != void
172+
return 0;
173+
#endif
171174
}
172175

173176
static RETSIGTYPE (*old_siginthandler)(int) = SIG_DFL;

0 commit comments

Comments
 (0)