]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix compiler warning in keyboard.c.
authorEli Zaretskii <eliz@gnu.org>
Tue, 14 Aug 2012 19:44:55 +0000 (22:44 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 14 Aug 2012 19:44:55 +0000 (22:44 +0300)
src/keyboard.c

index bf3ef9ed6dd1bed01585dffbe4ef8dcd06ea0682..4d0c98f3529d5769468e11b51774546083469909 100644 (file)
@@ -8441,7 +8441,9 @@ static Lisp_Object
 read_char_x_menu_prompt (ptrdiff_t nmaps, Lisp_Object *maps,
                         Lisp_Object prev_event, int *used_mouse_menu)
 {
+#ifdef HAVE_MENUS
   ptrdiff_t mapno;
+#endif
 
   if (used_mouse_menu)
     *used_mouse_menu = 0;