Skip to content

Commit

Permalink
pythongh-105323: Suppress function pointer warning by type casting
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Jun 30, 2023
1 parent 319de0b commit 15a0296
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/readline.c
Original file line number Diff line number Diff line change
Expand Up @@ -1249,9 +1249,9 @@ setup_readline(readlinestate *mod_state)
sigwinch_ohandler = PyOS_setsig(SIGWINCH, readline_sigwinch_handler);
#endif
/* Set our hook functions */
rl_startup_hook = on_startup_hook;
rl_startup_hook = (Function *)on_startup_hook;
#ifdef HAVE_RL_PRE_INPUT_HOOK
rl_pre_input_hook = on_pre_input_hook;
rl_pre_input_hook = (Function *)on_pre_input_hook;
#endif
/* Set our completion function */
rl_attempted_completion_function = flex_complete;
Expand Down

0 comments on commit 15a0296

Please sign in to comment.