summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-10-31 18:23:16 +0100
committerSebastien Helleu <flashcode@flashtux.org>2010-10-31 18:23:16 +0100
commitac6b299e8b95420de749daed2c93b9ff516c71cb (patch)
tree87966190199f96f719d2bcfecd40795fdaa9e1b4 /src/core
parent06b48ccf8367ab4433fd7e0b3bcd26afb635ff92 (diff)
downloadweechat-ac6b299e8b95420de749daed2c93b9ff516c71cb.zip
Remove dead assignments
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-command.c6
-rw-r--r--src/core/wee-string.c2
-rw-r--r--src/core/wee-upgrade.c2
3 files changed, 3 insertions, 7 deletions
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,