* xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to
authorChong Yidong <cyd@stupidchicken.com>
Sat, 4 Nov 2006 03:21:40 +0000 (03:21 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 4 Nov 2006 03:21:40 +0000 (03:21 +0000)
avoid gcc 2.95 error.

src/ChangeLog
src/xmenu.c

index 0d6f683..94e1e02 100644 (file)
@@ -1,3 +1,8 @@
+2006-11-03  Giorgos Keramidas  <keramida@ceid.upatras.gr> (tiny change)
+
+       * xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to
+       avoid gcc 2.95 error.
+
 2006-11-03  Chong Yidong  <cyd@stupidchicken.com>
 
        * gtkutil.c (update_frame_tool_bar): If icon image is invalid and
index d049fb9..7c397fb 100644 (file)
@@ -1395,8 +1395,10 @@ If FRAME is nil or not given, use the selected frame.  */)
      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);