Mercurial > emacs
diff src/xmenu.c @ 31829:43566b0aec59
Avoid some more compiler warnings.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 21 Sep 2000 20:54:57 +0000 |
parents | b58d8e366faa |
children | 15fe3fd7b8fc |
line wrap: on
line diff
--- a/src/xmenu.c Thu Sep 21 20:15:55 2000 +0000 +++ b/src/xmenu.c Thu Sep 21 20:54:57 2000 +0000 @@ -691,11 +691,11 @@ Lisp_Object position, menu; { Lisp_Object keymap, tem; - int xpos, ypos; + int xpos = 0, ypos = 0; Lisp_Object title; char *error_name; Lisp_Object selection; - FRAME_PTR f; + struct frame *f = NULL; Lisp_Object x, y, window; int keymaps = 0; int for_click = 0; @@ -899,7 +899,7 @@ (position, contents) Lisp_Object position, contents; { - FRAME_PTR f; + struct frame * f = NULL; Lisp_Object window; check_x (); @@ -1247,6 +1247,7 @@ if (!f) return; + entry = Qnil; subprefix_stack = (Lisp_Object *) alloca (f->menu_bar_items_used * sizeof (Lisp_Object)); vector = f->menu_bar_vector; prefix = Qnil; @@ -2233,7 +2234,7 @@ { Lisp_Object prefix, entry; - prefix = Qnil; + prefix = entry = Qnil; i = 0; while (i < menu_items_used) {