diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2005-09-01 14:16:19 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2005-09-01 14:16:19 +0000 |
commit | 82f4a138a7ece82dfe955da9d8443c7f6dbc47e0 (patch) | |
tree | 34f84ed8f346cb12939f4d6f4d7c02aca727fff4 | |
parent | a9efeb1df80145553d3c0c6c8da51a8dae2fd8dc (diff) | |
download | emacs-82f4a138a7ece82dfe955da9d8443c7f6dbc47e0.tar.gz |
(window_to_frame_hpos, update_window):
Avoid gcc warning about unused variable `f'.
-rw-r--r-- | src/dispnew.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 15190abfb7e..3975f9ad788 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -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 |