aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-01-19 09:04:32 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-01-19 09:04:32 +0000
commitcfd9a36fd143af24b34f981439e1458c136f8dec (patch)
tree5d3e00e44ecbf1dba1a9237fe4efb6bb5d361f77
parent[w3m-dev 03654] file.c:image_source when undef USE_IMAGE (diff)
downloadw3m-cfd9a36fd143af24b34f981439e1458c136f8dec.tar.gz
w3m-cfd9a36fd143af24b34f981439e1458c136f8dec.zip
[w3m-dev 03655] Re: file.c:image_source when undef USE_IMAGE
* map.c (follow_map_menu): fix warnings From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--ChangeLog7
-rw-r--r--map.c9
2 files changed, 13 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index bd2bc5d..83af0cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-19 Fumitoshi UKAI <ukai@debian.or.jp>
+
+ * [w3m-dev 03655] Re: file.c:image_source when undef USE_IMAGE
+ * map.c (follow_map_menu): fix warnings
+
2003-01-19 WATANABE Katsuyuki <knabe@sannet.ne.jp>
* [w3m-dev 03654] file.c:image_source when undef USE_IMAGE
@@ -6604,4 +6609,4 @@ a * [w3m-dev 03276] compile error on EWS4800
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.691 2003/01/19 08:28:39 ukai Exp $
+$Id: ChangeLog,v 1.692 2003/01/19 09:04:32 ukai Exp $
diff --git a/map.c b/map.c
index 16c280c..233c8a0 100644
--- a/map.c
+++ b/map.c
@@ -1,4 +1,4 @@
-/* $Id: map.c,v 1.24 2003/01/10 16:59:32 ukai Exp $ */
+/* $Id: map.c,v 1.25 2003/01/19 09:04:33 ukai Exp $ */
/*
* client-side image maps
*/
@@ -201,7 +201,10 @@ follow_map_menu(Buffer *buf, char *name, Anchor *a_img, int x, int y)
{
MapList *ml;
ListItem *al;
- int i, selected = -1, initial = 0;
+ int i, selected = -1;
+#if defined(USE_IMAGE) || defined(MENU_MAP)
+ int initial = 0;
+#endif
#ifdef MENU_MAP
MapArea *a;
char **label;
@@ -235,7 +238,9 @@ follow_map_menu(Buffer *buf, char *name, Anchor *a_img, int x, int y)
optionMenu(x, y, label, &selected, initial, NULL);
#endif
+#ifdef USE_IMAGE
map_end:
+#endif
if (selected >= 0) {
for (i = 0, al = ml->area->first; al != NULL; i++, al = al->next) {
if (al->ptr && i == selected)