From 8961d23171ff5d8e9eb15c1f935c9447d24ad2dc Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 23 Nov 2000 23:23:45 +0000 Subject: [PATCH] Still some warnings removed.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@864 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/gui-printtext.c | 2 +- src/perl/common/Window.xs | 4 ---- src/perl/irc/IrcChannel.xs | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/fe-text/gui-printtext.c b/src/fe-text/gui-printtext.c index b539f654..3e1930d6 100644 --- a/src/fe-text/gui-printtext.c +++ b/src/fe-text/gui-printtext.c @@ -140,7 +140,7 @@ void gui_window_line_text_free(GUI_WINDOW_REC *gui, LINE_REC *line) break; if ((unsigned char) *text == LINE_CMD_CONTINUE) { - unsigned char *tmp; + char *tmp; memcpy(&tmp, text+1, sizeof(char *)); diff --git a/src/perl/common/Window.xs b/src/perl/common/Window.xs index 579fef71..5ac89029 100644 --- a/src/perl/common/Window.xs +++ b/src/perl/common/Window.xs @@ -69,7 +69,6 @@ values(window) Irssi::Window window PREINIT: HV *hv; - GSList *tmp; PPCODE: hv = newHV(); hv_store(hv, "refnum", 6, newSViv(window->refnum), 0); @@ -98,7 +97,6 @@ items(window) Irssi::Window window PREINIT: GSList *tmp; - HV *stash; PPCODE: for (tmp = window->items; tmp != NULL; tmp = tmp->next) { CHANNEL_REC *rec = tmp->data; @@ -125,8 +123,6 @@ values(item) Irssi::Windowitem item PREINIT: HV *hv; - AV *av; - GSList *tmp; PPCODE: hv = newHV(); hv_store(hv, "server", 6, sv_bless(newRV_noinc(newSViv(GPOINTER_TO_INT(item->server))), diff --git a/src/perl/irc/IrcChannel.xs b/src/perl/irc/IrcChannel.xs index 7d2b1092..b78636c9 100644 --- a/src/perl/irc/IrcChannel.xs +++ b/src/perl/irc/IrcChannel.xs @@ -29,7 +29,6 @@ invites(channel) Irssi::Irc::Channel channel PREINIT: GSList *tmp; - HV *stash; PPCODE: for (tmp = channel->invitelist; tmp != NULL; tmp = tmp->next) { XPUSHs(new_pv(tmp->data));