From ac6b299e8b95420de749daed2c93b9ff516c71cb Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 31 Oct 2010 18:23:16 +0100 Subject: Remove dead assignments --- src/core/wee-command.c | 6 ++---- src/core/wee-string.c | 2 -- src/core/wee-upgrade.c | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) (limited to 'src/core') diff --git a/src/core/wee-command.c b/src/core/wee-command.c index a973e897b..7d1e9b51f 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -155,7 +155,6 @@ command_bar (void *data, struct t_gui_buffer *buffer, int argc, char **argv, char **argv_eol) { int type, position; - long number; char *error, *str_type, *pos_condition; struct t_gui_bar *ptr_bar; struct t_gui_bar_item *ptr_item; @@ -254,7 +253,7 @@ command_bar (void *data, struct t_gui_buffer *buffer, return WEECHAT_RC_ERROR; } error = NULL; - number = strtol (argv[5], &error, 10); + (void) strtol (argv[5], &error, 10); if (error && !error[0]) { /* create bar */ @@ -3035,7 +3034,6 @@ command_proxy (void *data, struct t_gui_buffer *buffer, int argc, char **argv, char **argv_eol) { int type; - long number; char *error; struct t_proxy *ptr_proxy; @@ -3074,7 +3072,7 @@ command_proxy (void *data, struct t_gui_buffer *buffer, return WEECHAT_RC_ERROR; } error = NULL; - number = strtol (argv[5], &error, 10); + (void) strtol (argv[5], &error, 10); if (error && !error[0]) { /* create proxy */ diff --git a/src/core/wee-string.c b/src/core/wee-string.c index da30195f4..026797b39 100644 --- a/src/core/wee-string.c +++ b/src/core/wee-string.c @@ -677,7 +677,6 @@ string_has_highlight (const char *string, const char *highlight_words) /* highlight found! */ while ((match = strstr (msg_pos, pos)) != NULL) { - match_pre = match - 1; match_pre = utf8_prev_char (msg, match); if (!match_pre) match_pre = match - 1; @@ -813,7 +812,6 @@ string_split (const char *string, const char *separators, int keep_eol, return NULL; ptr1 = string2; - ptr2 = string2; for (i = 0; i < n_items; i++) { diff --git a/src/core/wee-upgrade.c b/src/core/wee-upgrade.c index f6810d091..b14360227 100644 --- a/src/core/wee-upgrade.c +++ b/src/core/wee-upgrade.c @@ -511,7 +511,7 @@ upgrade_weechat_read_cb (void *data, ptr_group = gui_nicklist_search_group (upgrade_current_buffer, NULL, group_name); - ptr_group = gui_nicklist_add_group ( + gui_nicklist_add_group ( upgrade_current_buffer, ptr_group, name, -- cgit v1.2.3