diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-01-19 09:04:32 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-01-19 09:04:32 +0000 |
commit | cfd9a36fd143af24b34f981439e1458c136f8dec (patch) | |
tree | 5d3e00e44ecbf1dba1a9237fe4efb6bb5d361f77 /map.c | |
parent | [w3m-dev 03654] file.c:image_source when undef USE_IMAGE (diff) | |
download | w3m-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 'map.c')
-rw-r--r-- | map.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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) |