From 791702e4ec83d1b01ea12191b6c5b42ce1669acf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Sun, 18 May 2014 10:33:24 +0100 Subject: [PATCH] fix warnings --- os/pl-rl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os/pl-rl.c b/os/pl-rl.c index 735400d56..8d2cb018a 100755 --- a/os/pl-rl.c +++ b/os/pl-rl.c @@ -455,7 +455,7 @@ Sread_readline(void *handle, char *buf, size_t size) #ifdef HAVE_RL_EVENT_HOOK if ( PL_dispatch(0, PL_DISPATCH_INSTALLED) ) - rl_event_hook = event_hook; + rl_event_hook = (Function *)event_hook; else rl_event_hook = NULL; #endif @@ -607,7 +607,7 @@ PL_install_readline(void) #else rl_basic_word_break_characters = ":\t\n\"\\'`@$><= [](){}+*!,|%&?"; #endif - rl_add_defun("prolog-complete", prolog_complete, '\t'); + rl_add_defun("prolog-complete", (Function *)prolog_complete, '\t'); #if HAVE_RL_INSERT_CLOSE rl_add_defun("insert-close", rl_insert_close, ')'); #endif