summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/script.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-09-22 16:16:41 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-09-22 16:16:41 +0200
commit893485ba5fcf791ceed99ab122e336402624b872 (patch)
treee395f6326eb4c166b78fc7aae180a3a7ba343558 /src/plugins/scripts/script.c
parent0602bc105b8f90b09e94bbbdfcb829841141d3ed (diff)
downloadweechat-893485ba5fcf791ceed99ab122e336402624b872.zip
core: remove compilation warnings about unused return values of functions
Diffstat (limited to 'src/plugins/scripts/script.c')
-rw-r--r--src/plugins/scripts/script.c5
1 files changed, 3 insertions, 2 deletions
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);