From c24d87191f249ef8fdd363226dce2fd67475079c Mon Sep 17 00:00:00 2001 From: hsbt Date: Mon, 6 Mar 2017 09:10:21 +0000 Subject: Avoid to warning of clang with -Wincompatible-pointer-types. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/readline/readline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/readline/readline.c') diff --git a/ext/readline/readline.c b/ext/readline/readline.c index ff4c4d0075..e5a00a6e5d 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -2077,7 +2077,7 @@ Init_readline(void) rl_attempted_completion_function = readline_attempted_completion_function; #if defined(HAVE_RL_PRE_INPUT_HOOK) - rl_pre_input_hook = readline_pre_input_hook; + rl_pre_input_hook = (Function *)readline_pre_input_hook; #endif #if defined HAVE_RL_CHAR_IS_QUOTED_P rl_char_is_quoted_p = &readline_char_is_quoted; -- cgit v1.2.3