mirror of
https://github.com/python/cpython.git
synced 2025-07-31 15:14:22 +00:00
Issue #20374: Avoid compiler warnings when compiling readline with libedit.
This commit is contained in:
parent
23686074b0
commit
7b9ddea80b
1 changed files with 9 additions and 0 deletions
|
@ -773,15 +773,24 @@ on_hook(PyObject *func)
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
#if defined(_RL_FUNCTION_TYPEDEF)
|
||||||
on_startup_hook(void)
|
on_startup_hook(void)
|
||||||
|
#else
|
||||||
|
on_startup_hook()
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
return on_hook(startup_hook);
|
return on_hook(startup_hook);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_RL_PRE_INPUT_HOOK
|
#ifdef HAVE_RL_PRE_INPUT_HOOK
|
||||||
static int
|
static int
|
||||||
|
#if defined(_RL_FUNCTION_TYPEDEF)
|
||||||
on_pre_input_hook(void)
|
on_pre_input_hook(void)
|
||||||
|
#else
|
||||||
|
on_pre_input_hook()
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
return on_hook(pre_input_hook);
|
return on_hook(pre_input_hook);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue