Commit 82f4a138 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(window_to_frame_hpos, update_window):

Avoid gcc warning about unused variable `f'.
parent a9efeb1d
...@@ -3324,9 +3324,7 @@ window_to_frame_hpos (w, hpos) ...@@ -3324,9 +3324,7 @@ window_to_frame_hpos (w, hpos)
struct window *w; struct window *w;
int hpos; int hpos;
{ {
struct frame *f = XFRAME (w->frame); xassert (!FRAME_WINDOW_P (XFRAME (w->frame)));
xassert (!FRAME_WINDOW_P (f));
hpos += WINDOW_LEFT_EDGE_COL (w); hpos += WINDOW_LEFT_EDGE_COL (w);
return hpos; return hpos;
} }
...@@ -4101,10 +4099,8 @@ update_window (w, force_p) ...@@ -4101,10 +4099,8 @@ update_window (w, force_p)
extern int input_pending; extern int input_pending;
extern Lisp_Object do_mouse_tracking; extern Lisp_Object do_mouse_tracking;
#if GLYPH_DEBUG #if GLYPH_DEBUG
struct frame *f = XFRAME (WINDOW_FRAME (w));
/* Check that W's frame doesn't have glyph matrices. */ /* 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); xassert (updating_frame != NULL);
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment