changeset 65308:7b2a711dc863

(window_to_frame_hpos, update_window): Avoid gcc warning about unused variable `f'.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 01 Sep 2005 14:16:19 +0000
parents 36abe6aaec07
children f740c5937479
files src/dispnew.c
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Thu Sep 01 14:04:03 2005 +0000
+++ b/src/dispnew.c	Thu Sep 01 14:16:19 2005 +0000
@@ -3324,9 +3324,7 @@
      struct window *w;
      int hpos;
 {
-  struct frame *f = XFRAME (w->frame);
-
-  xassert (!FRAME_WINDOW_P (f));
+  xassert (!FRAME_WINDOW_P (XFRAME (w->frame)));
   hpos += WINDOW_LEFT_EDGE_COL (w);
   return hpos;
 }
@@ -4101,10 +4099,8 @@
   extern int input_pending;
   extern Lisp_Object do_mouse_tracking;
 #if GLYPH_DEBUG
-  struct frame *f = XFRAME (WINDOW_FRAME (w));
-
   /* Check that W's frame doesn't have glyph matrices.  */
-  xassert (FRAME_WINDOW_P (f));
+  xassert (FRAME_WINDOW_P (XFRAME (WINDOW_FRAME (w))));
   xassert (updating_frame != NULL);
 #endif