changeset 74035:4f75dfc2cb0d

Declare variable before XSETFRAME to avoid gcc 2.96 error. Tetsurou Okazaki <okazaki@be.to> (tiny change)
author Jan Djärv <jan.h.d@swipnet.se>
date Fri, 17 Nov 2006 13:02:53 +0000
parents 855dde2986ea
children 2cead5d735ec
files src/ChangeLog src/xterm.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Fri Nov 17 12:12:15 2006 +0000
+++ b/src/ChangeLog	Fri Nov 17 13:02:53 2006 +0000
@@ -1,3 +1,8 @@
+2006-11-17  Tetsurou Okazaki  <okazaki@be.to>  (tiny change)
+
+	* xterm.c (do_ewmh_fullscreen): Declare variable before XSETFRAME
+	to avoid gcc 2.96 error.
+
 2006-11-17  NIIMI Satoshi  <sa2c@sa2c.net>  (tiny change)
 
 	* search.c (simple_search): In the loop of backward searching,
--- a/src/xterm.c	Fri Nov 17 12:12:15 2006 +0000
+++ b/src/xterm.c	Fri Nov 17 13:02:53 2006 +0000
@@ -8333,13 +8333,14 @@
   if (have_net_atom) 
     {
       Lisp_Object frame;
-      XSETFRAME (frame, f);
       const char *atom = "_NET_WM_STATE";
       const char *fs = "_NET_WM_STATE_FULLSCREEN";
       const char *fw = "_NET_WM_STATE_MAXIMIZED_HORZ";
       const char *fh = "_NET_WM_STATE_MAXIMIZED_VERT";
       const char *what = NULL;
 
+      XSETFRAME (frame, f);
+
       /* If there are _NET_ atoms we assume we have extended window manager
          hints.  */
       switch (f->want_fullscreen)