aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-01-31 18:28:24 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-01-31 18:28:24 +0000
commit4c7c352e4702973aa067da874124458130da6b69 (patch)
tree692a321abc5b1b3a32d256b9be9fb9dff2f6d63e /file.c
parentw3m-img merge (w3m-0.2.4+cvs-1.278-img-2.2.patch.gz) (diff)
downloadw3m-4c7c352e4702973aa067da874124458130da6b69.tar.gz
w3m-4c7c352e4702973aa067da874124458130da6b69.zip
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 <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--file.c10
1 files changed, 5 insertions, 5 deletions
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 <sys/types.h>
#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;