Skip to content

Commit 7b9ddea

Browse files
committed
Issue #20374: Avoid compiler warnings when compiling readline with libedit.
1 parent 2368607 commit 7b9ddea

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Modules/readline.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,15 +773,24 @@ on_hook(PyObject *func)
773773
return result;
774774
}
775775

776+
776777
static int
778+
#if defined(_RL_FUNCTION_TYPEDEF)
777779
on_startup_hook(void)
780+
#else
781+
on_startup_hook()
782+
#endif
778783
{
779784
return on_hook(startup_hook);
780785
}
781786

782787
#ifdef HAVE_RL_PRE_INPUT_HOOK
783788
static int
789+
#if defined(_RL_FUNCTION_TYPEDEF)
784790
on_pre_input_hook(void)
791+
#else
792+
on_pre_input_hook()
793+
#endif
785794
{
786795
return on_hook(pre_input_hook);
787796
}

0 commit comments

Comments
 (0)