[前][次][番号順一覧][スレッド一覧]

ruby-changes:45715

From: hsbt <ko1@a...>
Date: Mon, 6 Mar 2017 18:10:26 +0900 (JST)
Subject: [ruby-changes:45715] hsbt:r57788 (trunk): Avoid to warning of clang with -Wincompatible-pointer-types.

hsbt	2017-03-06 18:10:21 +0900 (Mon, 06 Mar 2017)

  New Revision: 57788

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57788

  Log:
    Avoid to warning of clang with -Wincompatible-pointer-types.

  Modified files:
    trunk/ext/readline/readline.c
Index: ext/readline/readline.c
===================================================================
--- ext/readline/readline.c	(revision 57787)
+++ ext/readline/readline.c	(revision 57788)
@@ -2077,7 +2077,7 @@ Init_readline(void) https://github.com/ruby/ruby/blob/trunk/ext/readline/readline.c#L2077
 
     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;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]