From f136a4bf7c65894acbf491cad8d5298662ba4cd1 Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Wed, 2 Jan 2019 18:56:49 +0100 Subject: [PATCH] Avoid a compiler warning on macOS. * src/xdisp.c (expose_window_tree): Define variable f only if used. --- src/xdisp.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5