forked from PsychoticNinja/irssi
Remove unused variables to silence compiler warnings
This commit is contained in:
parent
86fcadb85d
commit
b34ded063b
@ -211,7 +211,6 @@ void window_item_next(WINDOW_REC *window)
|
|||||||
WI_ITEM_REC *window_item_find_window(WINDOW_REC *window,
|
WI_ITEM_REC *window_item_find_window(WINDOW_REC *window,
|
||||||
void *server, const char *name)
|
void *server, const char *name)
|
||||||
{
|
{
|
||||||
CHANNEL_REC *channel;
|
|
||||||
GSList *tmp;
|
GSList *tmp;
|
||||||
|
|
||||||
for (tmp = window->items; tmp != NULL; tmp = tmp->next) {
|
for (tmp = window->items; tmp != NULL; tmp = tmp->next) {
|
||||||
|
@ -115,7 +115,6 @@ static void sig_session_restore_nick(IRC_CHANNEL_REC *channel,
|
|||||||
{
|
{
|
||||||
const char *nick, *prefixes;
|
const char *nick, *prefixes;
|
||||||
int op, halfop, voice;
|
int op, halfop, voice;
|
||||||
NICK_REC *nickrec;
|
|
||||||
char newprefixes[MAX_USER_PREFIXES + 1];
|
char newprefixes[MAX_USER_PREFIXES + 1];
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@ -145,7 +144,7 @@ static void sig_session_restore_nick(IRC_CHANNEL_REC *channel,
|
|||||||
newprefixes[i] = '\0';
|
newprefixes[i] = '\0';
|
||||||
prefixes = newprefixes;
|
prefixes = newprefixes;
|
||||||
}
|
}
|
||||||
nickrec = irc_nicklist_insert(channel, nick, op, halfop, voice, FALSE, prefixes);
|
irc_nicklist_insert(channel, nick, op, halfop, voice, FALSE, prefixes);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void session_restore_channel(IRC_CHANNEL_REC *channel)
|
static void session_restore_channel(IRC_CHANNEL_REC *channel)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user