diff options
| author | Philipp Stephani | 2019-01-02 18:56:49 +0100 |
|---|---|---|
| committer | Philipp Stephani | 2019-01-02 22:08:59 +0100 |
| commit | f136a4bf7c65894acbf491cad8d5298662ba4cd1 (patch) | |
| tree | 5c0a54cc241714479168a0cd5d597ab18cb9b287 /src | |
| parent | 9b7d28ce4ec8e5bcbf10c4a434d4e5189b5492b7 (diff) | |
| download | emacs-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.c | 2 |
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) | |||
| 32390 | static bool | 32390 | static bool |
| 32391 | expose_window_tree (struct window *w, XRectangle *r) | 32391 | expose_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 |