diff options
Diffstat (limited to '')
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | map.c | 9 |
2 files changed, 13 insertions, 3 deletions
@@ -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 $ @@ -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) |