From 68d984ef99e423112afaf499951eb778b9533c0e Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Fri, 27 Dec 2002 16:30:53 +0000 Subject: gcc -Wall -Werror clean * file.c (loadHTMLstream): unused variable `p' * news.c (news_command): unused variable `c' (news_open): unused variable `tmp' (readNewsgroup): volatile page, qgroup, flag, start, end uninitialized variable `page' * url.c (openURL): unused variable `fw', `r', `stream' From: Fumitoshi UKAI --- ChangeLog | 12 +++++++++++- file.c | 3 +-- news.c | 14 ++++++++------ url.c | 7 +------ 4 files changed, 21 insertions(+), 15 deletions(-) diff --git a/ChangeLog b/ChangeLog index ad16504..31ff361 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2002-12-28 Fumitoshi UKAI + + * gcc -Wall -Werror clean + * file.c (loadHTMLstream): unused variable `p' + * news.c (news_command): unused variable `c' + (news_open): unused variable `tmp' + (readNewsgroup): volatile page, qgroup, flag, start, end + uninitialized variable `page' + * url.c (openURL): unused variable `fw', `r', `stream' + 2002-12-28 Fumitoshi UKAI * rc: nntpserver, nntpmode, max_news @@ -6143,4 +6153,4 @@ a * [w3m-dev 03276] compile error on EWS4800 * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.653 2002/12/27 16:08:46 ukai Exp $ +$Id: ChangeLog,v 1.654 2002/12/27 16:30:53 ukai Exp $ diff --git a/file.c b/file.c index 337634b..ab898f3 100644 --- a/file.c +++ b/file.c @@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.173 2002/12/27 16:09:18 ukai Exp $ */ +/* $Id: file.c,v 1.174 2002/12/27 16:30:54 ukai Exp $ */ #include "fm.h" #include #include "myctype.h" @@ -6372,7 +6372,6 @@ loadHTMLstream(URLFile *f, Buffer *newBuf, FILE * src, int internal) clen_t linelen = 0; clen_t trbyte = 0; Str lineBuf2 = Strnew(); - char *p; char code; struct html_feed_environ htmlenv1; struct readbuffer obuf; diff --git a/news.c b/news.c index 84c61d6..bd2b579 100644 --- a/news.c +++ b/news.c @@ -1,4 +1,4 @@ -/* $Id: news.c,v 1.2 2002/12/27 16:09:18 ukai Exp $ */ +/* $Id: news.c,v 1.3 2002/12/27 16:30:54 ukai Exp $ */ #include "fm.h" #include "myctype.h" #include @@ -36,7 +36,6 @@ static Str news_command(News * news, char *command, int *status) { Str tmp; - char c; if (!news->host) return NULL; @@ -72,7 +71,6 @@ news_close(News * news) static int news_open(News * news) { - Str tmp; int sock, status; sock = openSocket(news->host, "nntp", news->port); @@ -268,11 +266,14 @@ openNewsStream(ParsedURL *pu) Str readNewsgroup(ParsedURL *pu) { - Str page, tmp; + volatile Str page; + Str tmp; URLFile f; Buffer *buf; - char *group, *qgroup, *p, *q, *s, *t, *n; - int status, flag = 0, i, first, last, start = 0, end = 0; + char *group, *p, *q, *s, *t, *n; + char * volatile qgroup; + int status, i, first, last; + volatile int flag = 0, start = 0, end = 0; #ifdef JP_CHARSET char code = '\0'; #endif @@ -282,6 +283,7 @@ readNewsgroup(ParsedURL *pu) return NULL; group = file_unquote(pu->file); qgroup = html_quote(group); + page = Strnew(); if (fmInitialized) { message(Sprintf("Reading newsgroup %s...", group)->ptr, 0, 0); diff --git a/url.c b/url.c index 339ef91..584b8b4 100644 --- a/url.c +++ b/url.c @@ -1,4 +1,4 @@ -/* $Id: url.c,v 1.61 2002/12/27 16:07:45 ukai Exp $ */ +/* $Id: url.c,v 1.62 2002/12/27 16:30:54 ukai Exp $ */ #include "fm.h" #include #include @@ -1449,11 +1449,6 @@ openURL(char *url, ParsedURL *pu, ParsedURL *current, #ifdef USE_SSL SSL *sslh = NULL; #endif /* USE_SSL */ -#ifdef USE_NNTP - FILE *fw; - char *r; - InputStream stream; -#endif /* USE_NNTP */ int extlen = strlen(CGI_EXTENSION); if (hr == NULL) -- cgit v1.2.3