Fix some unused warnings

This commit is contained in:
TingPing 2014-12-31 10:24:51 -05:00
parent 448cc962cd
commit 1fa4a000e7
4 changed files with 1 additions and 10 deletions

View File

@ -1557,7 +1557,7 @@ hexchat_list_int (hexchat_plugin *ph, hexchat_list *xlist, const char *name)
case 0x5cfee87: /* flags */
/* used if text_strip is unset */ /* 16 */
tmp <<= 1;
tmp = ((struct session *)data)->text_strip; /* 15 */
tmp |= ((struct session *)data)->text_strip; /* 15 */
tmp <<= 1;
/* used if text_scrollback is unset */ /* 14 */
tmp <<= 1;

View File

@ -816,10 +816,7 @@ process_numeric (session * sess, int n,
case 349: /* end of exemption list */
sess = find_channel (serv, word[4]);
if (!sess)
{
sess = serv->front_session;
goto def;
}
if (!fe_ban_list_end (sess, 349))
goto def;
break;
@ -844,10 +841,7 @@ process_numeric (session * sess, int n,
case 368:
sess = find_channel (serv, word[4]);
if (!sess)
{
sess = serv->front_session;
goto def;
}
if (!fe_ban_list_end (sess, 368))
goto def;
break;

View File

@ -1897,7 +1897,6 @@ pevt_build_string (const char *input, char **output, int *max_arg)
if (d == 'a')
{
/* Hex value */
x = 0;
if (ii == len)
goto a_len_error;
d = i[ii++];
@ -1986,7 +1985,6 @@ pevt_build_string (const char *input, char **output, int *max_arg)
base = s;
if (last != NULL)
last->next = s;
last = s;
s->next = NULL;
s->data = g_malloc (1);
s->len = 1;

View File

@ -210,7 +210,6 @@ joind_show_dialog (server *serv)
gtk_widget_show (radiobutton3);
gtk_box_pack_start (GTK_BOX (vbox2), radiobutton3, FALSE, FALSE, 0);
gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton3), radiobutton1_group);
radiobutton1_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton3));
g_snprintf (buf, sizeof (buf), "<small> %s</small>",
_("Retrieving the Channel-List may take a minute or two."));