summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-06 09:10:21 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-06 09:10:21 +0000
commitcf2a68662aadcbed4a92cfdad4d992f894f3767f (patch)
tree0dff6ad75bff6f2c54f7dfe550cb6ab4e5b14b55 /ext/readline
parentf96c171ebc8ddda95083e6f19162e9aa9c73f67f (diff)
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
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/readline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index ff4c4d0..e5a00a6 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;