Hi

Building Vim-7.3a (2245:1bac28a53fae) with:

$ ./configure --with-features=tiny --enable-gui=motif --enable-workshop
$ make

I see the following compilation warnings:

menu.c:2534:1: warning: ‘menu_unescape_name’ defined but not used

gui_beval.c:31:12: warning: unused variable ‘save_curbuf’
gui_beval.c:30:13: warning: unused variable ‘bexpr’
gui_beval.c:29:10: warning: unused variable ‘winnr’
gui_beval.c:28:20: warning: unused variable ‘result’
gui_beval.c:27:13: warning: unused variable ‘text’
gui_beval.c:26:14: warning: unused variable ‘lnum’
gui_beval.c:25:9: warning: unused variable ‘use_sandbox’
gui_beval.c:24:9: warning: unused variable ‘col’
gui_beval.c:23:12: warning: unused variable ‘wp’

Fixed in attached patch.
-- Dominique

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
diff -r 1bac28a53fae src/gui_beval.c
--- a/src/gui_beval.c	Sat Jun 05 23:22:07 2010 +0200
+++ b/src/gui_beval.c	Sun Jun 06 13:18:37 2010 +0200
@@ -20,6 +20,7 @@
     BalloonEval *beval;
     int		state UNUSED;
 {
+#ifdef FEAT_EVAL
     win_T	*wp;
     int		col;
     int		use_sandbox;
@@ -29,8 +30,9 @@
     long	winnr = 0;
     char_u	*bexpr;
     buf_T	*save_curbuf;
-#ifdef FEAT_WINDOWS
+# ifdef FEAT_WINDOWS
     win_T	*cw;
+# endif
 #endif
     static int	recursive = FALSE;
 
diff -r 1bac28a53fae src/menu.c
--- a/src/menu.c	Sat Jun 05 23:22:07 2010 +0200
+++ b/src/menu.c	Sun Jun 06 13:18:37 2010 +0200
@@ -56,10 +56,10 @@
 #endif
 #ifdef FEAT_MULTI_LANG
 static char_u *menutrans_lookup __ARGS((char_u *name, int len));
+static void menu_unescape_name  __ARGS((char_u	*p));
 #endif
 
 static char_u *menu_translate_tab_and_shift __ARGS((char_u *arg_start));
-static void menu_unescape_name  __ARGS((char_u	*p));
 
 /* The character for each menu mode */
 static char_u	menu_mode_chars[] = {'n', 'v', 's', 'o', 'i', 'c', 't'};
@@ -2525,7 +2525,6 @@
 
     return NULL;
 }
-#endif /* FEAT_MULTI_LANG */
 
 /*
  * Unescape the name in the translate dictionary table.
@@ -2540,6 +2539,7 @@
 	if (*p == '\\')
 	    STRMOVE(p, p + 1);
 }
+#endif /* FEAT_MULTI_LANG */
 
 /*
  * Isolate the menu name.

Raspunde prin e-mail lui