w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 74ad39aa8f30f36bf72651a3787d59bd29f0e85c
parent fd38bce05851317f537d3ba70d752f5eebd08529
Author: ukai <ukai>
Date:   Sun, 19 Jan 2003 09:04:32 +0000

[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:
MChangeLog | 5+++++
Mmap.c | 7++++++-
2 files changed, 11 insertions(+), 1 deletion(-)

diff --git 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 diff --git a/map.c b/map.c @@ -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)