Avoid a compiler warning on macOS.

* src/xdisp.c (expose_window_tree): Define variable f only if used.
This commit is contained in:
Philipp Stephani 2019-01-02 18:56:49 +01:00
parent 9b7d28ce4e
commit f136a4bf7c

View file

@ -32390,7 +32390,9 @@ expose_window (struct window *w, XRectangle *fr)
static bool
expose_window_tree (struct window *w, XRectangle *r)
{
#ifndef HAVE_NS
struct frame *f = XFRAME (w->frame);
#endif
bool mouse_face_overwritten_p = false;
/* NS toolkits may have aleady modified the frame in expectation of