]> git.eshelyaron.com Git - emacs.git/commitdiff
(window_to_frame_hpos, update_window):
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 1 Sep 2005 14:16:19 +0000 (14:16 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 1 Sep 2005 14:16:19 +0000 (14:16 +0000)
Avoid gcc warning about unused variable `f'.

src/dispnew.c

index 15190abfb7e164f1cb0541d7c06892881a6cbe1a..3975f9ad788fe6e7a186193af47648ff3333ec29 100644 (file)
@@ -3324,9 +3324,7 @@ window_to_frame_hpos (w, hpos)
      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 @@ update_window (w, force_p)
   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