aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhilipp Stephani2019-01-02 18:56:49 +0100
committerPhilipp Stephani2019-01-02 22:08:59 +0100
commitf136a4bf7c65894acbf491cad8d5298662ba4cd1 (patch)
tree5c0a54cc241714479168a0cd5d597ab18cb9b287 /src
parent9b7d28ce4ec8e5bcbf10c4a434d4e5189b5492b7 (diff)
downloademacs-f136a4bf7c65894acbf491cad8d5298662ba4cd1.tar.gz
emacs-f136a4bf7c65894acbf491cad8d5298662ba4cd1.zip
Avoid a compiler warning on macOS.
* src/xdisp.c (expose_window_tree): Define variable f only if used.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c2
1 files changed, 2 insertions, 0 deletions
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)
32390static bool 32390static bool
32391expose_window_tree (struct window *w, XRectangle *r) 32391expose_window_tree (struct window *w, XRectangle *r)
32392{ 32392{
32393#ifndef HAVE_NS
32393 struct frame *f = XFRAME (w->frame); 32394 struct frame *f = XFRAME (w->frame);
32395#endif
32394 bool mouse_face_overwritten_p = false; 32396 bool mouse_face_overwritten_p = false;
32395 32397
32396 /* NS toolkits may have aleady modified the frame in expectation of 32398 /* NS toolkits may have aleady modified the frame in expectation of