aboutsummaryrefslogtreecommitdiffstats
path: root/map.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 /map.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 'map.c')
-rw-r--r--map.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/map.c b/map.c
index 5a6a349..b581746 100644
--- a/map.c
+++ b/map.c
@@ -1,4 +1,4 @@
-/* $Id: map.c,v 1.5 2002/01/31 17:54:52 ukai Exp $ */
+/* $Id: map.c,v 1.6 2002/01/31 18:28:24 ukai Exp $ */
/*
* client-side image maps
*/
@@ -69,7 +69,9 @@ follow_map_menu(Buffer *buf, struct parsed_tagarg *arg, Anchor *a_img, int x,
char *name;
int i, n, selected = -1, initial;
char **label;
+#ifdef USE_IMAGE
int px, py, map = 0;
+#endif
name = tag_get_value(arg, "link");
if (name == NULL)
@@ -195,9 +197,11 @@ newMapArea(char *url, char *alt, char *shape, char *coords)
{
MapArea *a = New(MapArea);
#ifdef MENU_MAP
+#ifdef USE_IMAGE
char *p;
int i, max;
#endif
+#endif
a->url = url;
a->alt = alt ? alt : "";