From 4c7c352e4702973aa067da874124458130da6b69 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Thu, 31 Jan 2002 18:28:24 +0000 Subject: gcc -Wall -Werror safe * anchor.c (addMultirowsImg): unused variable: fi * display.c (redrawLineImage): unused variable: ncol * file.c (process_img): uninitialized variables: r2, ni, w0, i0, ismap unused variable: url, ext * file.c (loadHTMLstream): need volatile image_flag * image.c (image_index): int * image.c (getCharSize): need prototype * image.c (getImage): uninitialized variable: key return NULL * map.c (follow_map_menu): used only USE_IMAGE: px, py, map * map.c (newMapArea): used only USE_IMAGE: p, i, max * proto.h (addMultirowsImg): added * w3mimgdisplay.c (main): format string fix * w3mimgdisplay.c (DrawImage): need (Pixmap) cast * inflate.c: indent From: Fumitoshi UKAI --- file.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'file.c') diff --git a/file.c b/file.c index 26ad0fc..02b5262 100644 --- a/file.c +++ b/file.c @@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.55 2002/01/31 17:54:50 ukai Exp $ */ +/* $Id: file.c,v 1.56 2002/01/31 18:28:24 ukai Exp $ */ #include "fm.h" #include #include "myctype.h" @@ -2754,9 +2754,10 @@ restore_fonteffect(struct html_feed_environ *h_env, struct readbuffer *obuf) Str process_img(struct parsed_tag *tag, int width) { - char *p, *q, *r, *r2, *s; + char *p, *q, *r, *r2 = NULL, *s; #ifdef USE_IMAGE - int w, i, nw, ni, n, w0, i0, align, xoffset, yoffset, top, bottom, ismap; + int w, i, nw, ni = 1, n, w0 = -1, i0 = -1; + int align, xoffset, yoffset, top, bottom, ismap = 0; int use_image = activeImage && displayImage; #else int w, i, nw, n; @@ -2842,7 +2843,6 @@ process_img(struct parsed_tag *tag, int width) w0 = w; i0 = i; if (w < 0 || i < 0) { - char *url, *ext; Image image; ParsedURL u; @@ -5726,7 +5726,7 @@ loadHTMLstream(URLFile *f, Buffer *newBuf, FILE * src, int internal) struct html_feed_environ htmlenv1; struct readbuffer obuf; #ifdef USE_IMAGE - int image_flag; + int volatile image_flag; #endif MySignalHandler(*volatile prevtrap) (SIGNAL_ARG) = NULL; -- cgit v1.2.3