changeset 73662:ea2e12adb144

* xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to avoid gcc 2.95 error.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 04 Nov 2006 03:21:40 +0000
parents 7c60775b5a52
children 5e9b94d5f593
files src/ChangeLog src/xmenu.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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  <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
--- 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);