Mercurial > emacs
comparison src/dispnew.c @ 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 | 2b179104bc17 |
children | 1a7a619caf97 532e0a9335a9 a3716f7538f2 |
comparison
equal
deleted
inserted
replaced
65307:36abe6aaec07 | 65308:7b2a711dc863 |
---|---|
3322 static int | 3322 static int |
3323 window_to_frame_hpos (w, hpos) | 3323 window_to_frame_hpos (w, hpos) |
3324 struct window *w; | 3324 struct window *w; |
3325 int hpos; | 3325 int hpos; |
3326 { | 3326 { |
3327 struct frame *f = XFRAME (w->frame); | 3327 xassert (!FRAME_WINDOW_P (XFRAME (w->frame))); |
3328 | |
3329 xassert (!FRAME_WINDOW_P (f)); | |
3330 hpos += WINDOW_LEFT_EDGE_COL (w); | 3328 hpos += WINDOW_LEFT_EDGE_COL (w); |
3331 return hpos; | 3329 return hpos; |
3332 } | 3330 } |
3333 | 3331 |
3334 #endif /* GLYPH_DEBUG */ | 3332 #endif /* GLYPH_DEBUG */ |
4099 int paused_p; | 4097 int paused_p; |
4100 int preempt_count = baud_rate / 2400 + 1; | 4098 int preempt_count = baud_rate / 2400 + 1; |
4101 extern int input_pending; | 4099 extern int input_pending; |
4102 extern Lisp_Object do_mouse_tracking; | 4100 extern Lisp_Object do_mouse_tracking; |
4103 #if GLYPH_DEBUG | 4101 #if GLYPH_DEBUG |
4104 struct frame *f = XFRAME (WINDOW_FRAME (w)); | |
4105 | |
4106 /* Check that W's frame doesn't have glyph matrices. */ | 4102 /* Check that W's frame doesn't have glyph matrices. */ |
4107 xassert (FRAME_WINDOW_P (f)); | 4103 xassert (FRAME_WINDOW_P (XFRAME (WINDOW_FRAME (w)))); |
4108 xassert (updating_frame != NULL); | 4104 xassert (updating_frame != NULL); |
4109 #endif | 4105 #endif |
4110 | 4106 |
4111 /* Check pending input the first time so that we can quickly return. */ | 4107 /* Check pending input the first time so that we can quickly return. */ |
4112 if (redisplay_dont_pause) | 4108 if (redisplay_dont_pause) |