From: Philipp Stephani Date: Wed, 2 Jan 2019 17:56:49 +0000 (+0100) Subject: Avoid a compiler warning on macOS. X-Git-Tag: emacs-27.0.90~3876 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f136a4bf7c65894acbf491cad8d5298662ba4cd1;p=emacs.git Avoid a compiler warning on macOS. * src/xdisp.c (expose_window_tree): Define variable f only if used. --- diff --git a/src/xdisp.c b/src/xdisp.c index f6f75f321c4..8b091c81bef 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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