# HG changeset patch # User Chong Yidong # Date 1162610500 0 # Node ID ea2e12adb144122b67d61b718a6597ed16b61e94 # Parent 7c60775b5a526be5072cdfd3226b3e195252ddd1 * xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to avoid gcc 2.95 error. diff -r 7c60775b5a52 -r ea2e12adb144 src/ChangeLog --- a/src/ChangeLog Sat Nov 04 03:08:35 2006 +0000 +++ b/src/ChangeLog Sat Nov 04 03:21:40 2006 +0000 @@ -1,3 +1,8 @@ +2006-11-03 Giorgos Keramidas (tiny change) + + * xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to + avoid gcc 2.95 error. + 2006-11-03 Chong Yidong * gtkutil.c (update_frame_tool_bar): If icon image is invalid and diff -r 7c60775b5a52 -r ea2e12adb144 src/xmenu.c --- a/src/xmenu.c Sat Nov 04 03:08:35 2006 +0000 +++ b/src/xmenu.c Sat Nov 04 03:21:40 2006 +0000 @@ -1395,8 +1395,10 @@ Lisp_Object frame; { GtkWidget *menubar; + FRAME_PTR f; + BLOCK_INPUT; - FRAME_PTR f = check_x_frame (frame); + f = check_x_frame (frame); if (FRAME_EXTERNAL_MENU_BAR (f)) set_frame_menubar (f, 0, 1);