diff options
-rw-r--r-- | ChangeLog | 12 | ||||
-rw-r--r-- | file.c | 3 | ||||
-rw-r--r-- | news.c | 14 | ||||
-rw-r--r-- | url.c | 7 |
4 files changed, 21 insertions, 15 deletions
@@ -1,5 +1,15 @@ 2002-12-28 Fumitoshi UKAI <ukai@debian.or.jp> + * 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 <ukai@debian.or.jp> + * rc: nntpserver, nntpmode, max_news 2002-12-28 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> @@ -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 $ @@ -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 <sys/types.h> #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; @@ -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 <stdio.h> @@ -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); @@ -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 <sys/types.h> #include <sys/socket.h> @@ -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) |