diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-09-22 16:16:41 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-09-22 16:16:41 +0200 |
commit | 893485ba5fcf791ceed99ab122e336402624b872 (patch) | |
tree | e395f6326eb4c166b78fc7aae180a3a7ba343558 /src/plugins/scripts/script.c | |
parent | 0602bc105b8f90b09e94bbbdfcb829841141d3ed (diff) | |
download | weechat-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.c | 5 |
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); |