From 893485ba5fcf791ceed99ab122e336402624b872 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Thu, 22 Sep 2011 16:16:41 +0200 Subject: core: remove compilation warnings about unused return values of functions --- src/plugins/scripts/script.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/plugins/scripts/script.c') diff --git a/src/plugins/scripts/script.c b/src/plugins/scripts/script.c index b87c4bad7..44d3d1dda 100644 --- a/src/plugins/scripts/script.c +++ b/src/plugins/scripts/script.c @@ -913,7 +913,7 @@ script_action_install (struct t_weechat_plugin *weechat_plugin, char **argv, *name, *ptr_base_name, *base_name, *new_path, *autoload_path; char *symlink_path; const char *dir_home, *dir_separator; - int argc, i, length; + int argc, i, length, rc; struct t_plugin_script *ptr_script; if (*list) @@ -968,7 +968,8 @@ script_action_install (struct t_weechat_plugin *weechat_plugin, { snprintf (symlink_path, length, "..%s%s", dir_separator, base_name); - symlink (symlink_path, autoload_path); + rc = symlink (symlink_path, autoload_path); + (void) rc; free (symlink_path); } free (autoload_path); -- cgit v1.2.3