Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0796b00 commit 2c46eafCopy full SHA for 2c46eaf
1 file changed
Modules/readline.c
@@ -38,7 +38,7 @@ extern Function *rl_event_hook;
38
#endif
39
40
/* Pointers needed from outside (but not declared in a header file). */
41
-extern int (*PyOS_InputHook)();
+extern int (*PyOS_InputHook)(void);
42
extern char *(*PyOS_ReadlineFunctionPointer)(char *);
43
44
@@ -431,6 +431,9 @@ static RETSIGTYPE
431
onintr(int sig)
432
{
433
longjmp(jbuf, 1);
434
+#if RETSIGTYPE != void
435
+ return 0;
436
+#endif
437
}
438
439
@@ -441,7 +444,7 @@ call_readline(char *prompt)
441
444
442
445
size_t n;
443
446
char *p, *q;
- RETSIGTYPE (*old_inthandler)();
447
+ RETSIGTYPE (*old_inthandler)(int);
448
old_inthandler = signal(SIGINT, onintr);
449
if (setjmp(jbuf)) {
450
#ifdef HAVE_SIGRELSE
0 commit comments